Web pages and the web terminal
http://yourbbs:8080/ shows how to call, who's online and recent public messages. /admin (sysops only, with their BBS name and password) has the nodes (hang up a caller), users (every setting: level, flags, exemptions, restrictions, credits, expiry …), screens (upload, preview, edit, remove), doors (the section tree), menus (below), messages and files (below), chat (answer pages, chat with callers), blocked addresses and the filter files, the log, statistics, timed events (below), buttons to poll the networks now, Back up now, and Reload settings (reads the .toml files again after you edit them by hand). The Nodes page also has Node control (spy, lock, down/up, quiet mode); a user's page lists their recent calls and their answers to the new-user questions (section 3); the Users page links to Inactive users (section 19).
Statistics (/admin/stats), like Synchronet's system and node statistics: today and in all (calls, minutes on line, new users, posts, e-mail, uploads and downloads with bytes), calls per node, the last 30 days day by day, and the busiest hours of the day and days of the week, with bars. They are counted as things happen: a call at logon, a new user at sign-up, a post or e-mail written here (not network mail, not the BBS's own notes), an upload or download (terminal, FTP and web), the minutes of a call when it ends. Each start also brings the numbers up to at least what the records show (the callers list, users, messages, file lists), so history brought over from Synchronet counts from the first day; a file found in a file area's folder counts as an upload on the day of its file date. The busiest hours and days come from the callers list. The same is in the sysop menu (T), and today's and total calls, new users and posts are on the Information menu's system page (I, I) for everyone.
Events (/admin/events): every timed event with its schedule, next run, last run and result, a Run now button, and the last 50 runs with their output (section 8).
Menus (/admin/menus) edits menus.toml (section 12) with forms: the list of menus with Add, Copy, Rename (items that open the menu are changed too), Remove and Make main menu; and each menu's settings and items, with up / down / remove buttons, a row to add an item, and an action box that offers every action, menu, door and section there is. Every button saves the whole form after the same checks as the Menu Editor; if something is wrong it is listed and the form comes back as you sent it, unsaved. Preview draws the menu as callers see it (its screen, or the box drawn from its items, then the prompt) with a table of what each key does. Edit screen opens the screen editor on the menu's screen; a menu without one gets screens/menu/CODE.ans, drawn from its items, and its screen set to menu/CODE, so the box can be turned into ANSI art.
Messages (/admin/messages): every message area, and private mail, with its messages (newest first, 50 a page). A message's page shows it with an edit form (subject and text: a local edit, so copies already sent out on a network stay as they were; the log notes who changed what), Delete, and Move to another area. Search all areas finds text in the subject, text, from or to of every message, mail too, newest first, each linking to its page. Bulk mail has a form with the access string, which says live how many users it matches, the subject and the text.
Files (/admin/files): every file area with its count of files, uploads waiting for validation, files new on disk and missing files, and the validation queue (Validate, Validate all). An area's page lists its files; each file's page edits the description (several lines), uploader, date (YYYY-MM-DD HH:MM), downloads and validation, and moves or copies it to another area or removes it. New on disk lists files in the folder that aren't listed, each with a description box filled from FILES.BBS or FILE_ID.DIZ, and Add (or Add all). Missing files lists records whose file has gone, with Remove record. Import a FILES.BBS takes a folder (the area's own, or another one: then the files are copied in).
The web terminal
http://yourbbs:8080/term is the BBS in a browser, for callers without a telnet or SSH program: the same logon, menus, messages, files and doors as a telnet call, drawn in the IBM PC (CP437) character set and the 16 ANSI colours. The public page and the members' pages link to it (“Connect in your browser”). Nothing is fetched from other sites: the page, its script and the font are part of the ironbark program.
- It is on whenever the web server is.
[servers] web_terminal = falseswitches it off (the links go and/termanswers “not found”); Reload settings is enough, no restart. - A web caller is a node like any other: listed in who's online and on the Nodes page (as
Web), counted against[bbs] nodes, put off by the idle time-out, and able to be spied on or hung up. When every node is busy the caller is told so and the page shows Disconnected. - The address filters and limits of section 17 apply as they do to telnet:
ip.can,ip-silent.can,host.can, too many connections a minute, and blocking after failed logins. - The screen is 80 columns by 24 lines. Another size can be asked for in the address:
/term?cols=132&rows=50(40 to 132 columns, 10 to 60 lines). - Keys: the cursor keys, Home, End, Page Up, Page Down, Insert, Delete, F1 to F10 and Ctrl with a letter go to the BBS. Ctrl+Shift+V or Shift+Insert pastes. On a phone or tablet, tap the screen for the keyboard; the bar under the screen has Esc, Tab, Ctrl (for the next letter), the arrows and Enter. The screen is scaled to the width of the device.
- File transfers (Zmodem and the like) do not work in the web terminal: callers can use the members' pages (
/bbs) or FTP for files.
Behind a reverse proxy (Nginx Proxy Manager, nginx, Caddy …) two things are needed:
- The proxy must pass WebSocket upgrades to
/term/ws. In Nginx Proxy Manager tick Websockets Support on the proxy host. In plain nginx:
location / {
proxy_pass http://192.168.1.5:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Without it the page loads but says “Could not connect”. The BBS sends a small keep-alive every 25 seconds, so the proxy's usual 60-second time-out does not cut a caller off who is reading.
- Tell Ironbark which addresses are your proxies, or every web caller appears to come from the proxy, and one caller tripping a limit blocks them all:
[servers] trusted_proxies = ["192.168.1.10"] # or a range: ["192.168.1.0/24"], IPv6 too
Only when a connection comes from one of these is the caller's address taken from the X-Forwarded-For header (the last address in it that is not one of your proxies) or, when there is none, X-Real-IP. From anyone else those headers are ignored, since a caller could write anything in them. The default is empty: no proxy is trusted. A proxy on the same machine is "127.0.0.1". Use https on the proxy and the terminal uses a secure WebSocket (wss) by itself.
From the Ironbark Sysop Guide, which is also in every download as SYSOP-GUIDE.txt.
