====== Configuration and timed events ======
===== ironbark.toml =====
''%%[bbs]%%'': name, sysop, location, ''%%qwk_id%%'' (up to 8 letters), ''%%hostname%%'', ''%%nodes%%'' (callers at once), ''%%new_user_level%%'', ''%%new_user_minutes%%'' (time a day), ''%%max_calls_per_day%%'', the questions new users are asked, ''%%new_user_password%%'' (for a private board), idle times, ''%%timezone_name%%'' ("AWST"), the main and file prompts, ''%%default_editor%%'' (the message editor new users start with, see 5), and ''%%logon%%'': what happens after logon, in order:
logon = ["screen:welcome", "bulletins", "oneliners", "gazette",
"screen-nopause:menu/logoninfo", "mail", "newscan"]
Steps: ''%%screen:NAME%%'' (shown, then [Hit a key]), ''%%screen-nopause:NAME%%'', ''%%bulletins%%'', ''%%oneliners%%'', ''%%gazette%%'', ''%%lastcallers%%'', ''%%automsg%%'', ''%%mail%%'' (offers to read new mail), ''%%newscan%%'', ''%%door:CODE%%'', ''%%script:NAME%%''.
''%%[bbs] theme%%'': the look of the BBS ([[ironbarkbbs:screens|section 4]], Themes).
''%%[oneliners]%%'': the oneliners wall (the ''%%oneliners%%'' logon step and built-in program). With ''%%interbbs = true%%'' it is the **shared InterBBS wall** that Synchronet BBSes use (echicken's Synchronet Oneliners, ''%%server = "bbs.electronicchicken.com"%%'', ''%%port = 10088%%''): callers see the newest lines from every BBS on it, as ''%%name@BBS: text%%'' (pipe colour codes in the lines are shown as colours), and what they add goes on the shared wall, signed with your ''%%[bbs] name%%'', ''%%hostname%%'' and ''%%qwk_id%%''. Guests can read it but not post to it. If the server can't be reached, the BBS's own wall is shown instead (and a post goes there). ''%%interbbs = false%%'' (the default) is a wall of this BBS's own. ''%%show%%'' is how many lines are shown (3-18). It can also be switched on when setting up: ''%%ironbark init FOLDER --interbbs-oneliners%%'', ''%%--ask%%'', or the Windows installer's components page; later in Configuration > Oneliners.
''%%[bbslist]%%'': the BBS list shared between BBSes over DOVE-Net, and this BBS's entry in it ([[ironbarkbbs:networks|section 10]], The BBS list).
''%%[servers]%%'': ''%%telnet%%'', ''%%ssh%%'', ''%%rlogin%%'', ''%%web%%'', ''%%ftp%%'' addresses ("0.0.0.0:23"); empty turns one off (FTP is off until you set it, e.g. ''%%ftp = "0.0.0.0:21"%%''; see 6 for ''%%[ftp]%%''). ''%%rlogin_allow%%'' lists the addresses rlogin is taken from (other BBSes you trust); with ''%%rlogin_trust = true%%'' those callers need no password. Like Synchronet, rlogin takes the name and password in either order: name first and password second (SyncTERM and most clients), or password first and name second (Synchronet, DoorParty, Door Hub). The name is whichever field is a user. ''%%web_terminal%%'' (true or false) is the terminal in the browser and ''%%trusted_proxies%%'' lists reverse proxies in front of the web server (both in 14, The web terminal).
**RLogin straight to a door** (''%%rlogin_auto_door = true%%'', the default; Synchronet's ''%%rlogin_auto_xtrn%%''): an rlogin call whose terminal-type field is ''%%xtrn=CODE%%'' (a speed may follow, ''%%xtrn=CODE/115200%%'') is logged on, put straight into the door with that code and logged off when the door ends, with no logon screens and no menus. This is how another BBS offers one of your games: its rlogin door names your door in the terminal type (in Ironbark: ''%%rlogin_term = "xtrn=LORD"%%''). The caller must be allowed to use the door exactly as from the door menu (the door's and its sections' level, access and sysop_only; time left, credits); otherwise they are told it is not available and the call ends. ''%%rlogin_auto_door = false%%'' treats such calls as ordinary rlogin logons.
**Ironbark as a Door Hub's game board** (Door Hub 0.2.0 and later): set ''%%rlogin%%'' to a local port such as ''%%"127.0.0.1:5513"%%'' with ''%%rlogin_allow = ["127.0.0.1"]%%'', put the shared doors in ''%%doors.toml%%'', and tell the hub ''%%door_bbs ironbark%%'', ''%%ironbark%%'' (this program) and ''%%ironbark_dir%%'' (this folder). The hub makes each player with ''%%ironbark user ensure "Name (TAG)"%%'', which reads the password from standard input, makes the user at the new-user level if needed, and prints ''%%OK NUMBER NAME%%''.
SSH callers log in with their BBS name and password, or as ''%%new%%'' to sign up. The SSH host key is made on first start in ''%%data/ssh_host_ed25519_key%%''.
Levels: 0-99. 90 and above is a sysop (no time limit, the sysop menu, the web admin pages).
==== New-user questions ====
Your own questions for new users (like Synchronet's new-user questions), asked at the end of sign-up on the terminal and on the web sign-up page, after name, password, real name and location:
[[newuser_question]]
prompt = "How did you find this BBS?"
kind = "choice" # "text", "yesno" or "choice"
choices = ["A friend", "A BBS list", "Searching the web"]
required = true # must be answered (a yes/no always is)
[[newuser_question]]
prompt = "Your favourite door game:"
kind = "text"
max_len = 30 # longest answer (text; default 60)
The answers are kept with the user, put at the end of the "New user" mail you get, and shown in the User Editor (key A on a user) and on the web admin's user page. They are also in Configuration as a list (**New-user questions**). The first user (the sysop) isn't asked.
==== Welcome mail ====
A new user gets a mail from the sysop as soon as the account is made (on the terminal and on the web sign-up page), which the logon mail check then offers to read. It is the text file ''%%welcome-mail.txt%%'': ''%%ironbark init%%'' writes a plain one in ''%%text/%%''; put your own in ''%%screens/%%'' and it is used instead. The first line is the subject, then a blank line, then the body:
Welcome to @BBS@
Hello @ALIAS@,
Welcome to @BBS@. You are user number @UN@.
...
@SYSOP@
These @-codes are filled in, with the values they have on screens: ''%%@ALIAS@%%'' (''%%@USER@%%''), ''%%@FIRST@%%'', ''%%@NAME@%%'' (''%%@REALNAME@%%''), ''%%@LOCATION@%%'', ''%%@EMAIL@%%'', ''%%@UN@%%'' (''%%@USERNUM@%%''), ''%%@LEVEL@%%'', ''%%@BBS@%%'', ''%%@SYSOP@%%'', ''%%@SYS_LOCATION@%%'', ''%%@HOSTNAME@%%'', ''%%@QWKID@%%'', ''%%@DATE@%%'' and ''%%@TIME@%%''; other codes and colour codes are not (it is a mail, not a screen). The file may be UTF-8 or CP437. The mail is from the sysop's account (user #1), so a reply reaches you, and it shows in your sent mail. No file, or an empty one, means no welcome mail: a BBS folder made before this was added has none until you add the file (or run ''%%ironbark init FOLDER%%'' again, which only adds missing files). The first user (the sysop) and users added with ''%%ironbark user add%%'' or the User Editor get none.
===== Timed events =====
[[event]]
name = "twmaint"
time = "00:00" # local time, once a day; or every_minutes = 30
run = "twmaint.bat" # or ftn-poll, ftn-toss, qwk-exchange, maintenance, backup, bbslist, or any command
dir = "tw2002"
dos = true # run in DOSBox (E: = xtrn)
exclusive = true # wait until nobody is in a door
Nightly maintenance (old messages trimmed, the log kept to 60 days, inactive users removed and the backup, see [[ironbarkbbs:sysop_tools|section 19]]) runs at 00:05 by itself.
Every run is recorded: when it started and ended, who started it (the timer, or "Run now" by a sysop on the web or the terminal), ok or failed, the exit code of a command and the last 20 lines it printed (for built-in jobs, what they wrote to the log). The last 200 runs of each event are kept. A command that ends with an exit code other than 0 counts as failed.
See them, and run an event now, on the web admin's **Events** page or in the sysop menu with **E**: each event with its schedule, next run, last run and result, then the recent runs. Run now doesn't move the event's next timed run. Events run one at a time; an exclusive event first waits (up to an hour) until no one is in a door, and shows as waiting. An event already waiting or running can't be asked for again until it ends.
----
//From the Ironbark Sysop Guide, which is also in every download as ''SYSOP-GUIDE.txt''.//