mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
[general] database = takes SQLite's file as before, or a server's address: postgres://... (pgx) or mysql://... / mysql:DSN (go-sql-driver). The store's SQL is written once; internal/store's dialect gives each engine its forms of what differs: ? placeholders ($1 for PostgreSQL), ids returned by RETURNING or LastInsertId, upserts (ON DUPLICATE KEY UPDATE), INSERT OR IGNORE, GREATEST, booleans, unique violations, column checks for migrations, indexes. The schema is one list with types per engine: names match in any case (NOCASE, an ICU collation made on PostgreSQL, utf8mb4_0900_as_ci), MySQL keeps indexed text in VARCHARs and connects with the SQL mode the store wants (ANSI quotes for "read" and "key", strict, rows matched not changed). Existing SQLite databases are kept as they are. bbs db copy DATABASE copies every table into a new database of any engine, keeping ids (PostgreSQL's sequences set after). Logs and bbs check never show a server's password. Under go test, BBS_TEST_DATABASE puts every test's store on a PostgreSQL or MySQL server (a schema or database each, dropped after): the whole suite passes on PostgreSQL 16 and MySQL 8.4 as on SQLite. The store's own tests check what the engines do differently, and copying from SQLite into each. Also: the FTP tests' readiness probe now waits to be counted out, so the per-address limit test no longer fails at random. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
41 lines
2.7 KiB
Markdown
41 lines
2.7 KiB
Markdown
[bbs.conf.sample](https://github.com/Neo-Desktop/bbs-sec/blob/HEAD/bbs.conf.sample) has every option. `[general]` is the
|
|
system (name, database, log, banner, message of the day, timeouts, limits);
|
|
each `[listen NAME]` is a port or unix socket:
|
|
|
|
| `type` | what comes in |
|
|
|---|---|
|
|
| `telnet` | a telnet client; with `tn3270 = yes` (the default) 3270s get 3270 screens |
|
|
| `raw` | bytes as they come: app_dmodem's `mode = tcp`, a modemmenu `tcp` or `unix` item |
|
|
| `rlogin` | RFC 1282, as modemmenu's `rlogin` items speak it |
|
|
| `ssh` | SSH: the text BBS, logged in by password or key ([SSH](SSH)) |
|
|
|
|
`address` is `host:port`, or a path for a unix socket (`socket_mode`,
|
|
`socket_group`). Any listener may read a session header first (`header =
|
|
yes`), and with `trust_user = yes` take the caller as logged in already: see
|
|
[Modem callers](Modem-Callers) (not `ssh`, which logs its callers in itself). `petscii` and `rip` say whether
|
|
its callers may be Commodores or RIPscrip terminals: [PETSCII and RIP](PETSCII-and-RIP); `vt`
|
|
whether terminals are asked what they are: [Terminal identification](Terminal-Identification).
|
|
|
|
## The sections
|
|
|
|
| section | what | page |
|
|
|---|---|---|
|
|
| `[general]` | the system: name, sysop, database, log, banner, message of the day, logo, new users, limits, timeouts, file areas' directory and limits | here, [Security](Security) |
|
|
| `[listen NAME]` | a port or socket callers come in on | here, [Modem callers](Modem-Callers), [TN3270](TN3270) |
|
|
| `[ftp]` | the FTP server for the file areas | [Files and FTP](Files-and-FTP) |
|
|
| `[news]`, `[nntp]`, `[peer NAME]` | newsgroups, the NNTP server, news peers | [Newsgroups and NNTP](Newsgroups-and-NNTP) |
|
|
| `[fido]`, `[binkp]`, `[link NAME]` | FidoNet: our address, the binkp mailer, links | [FidoNet](FidoNet) |
|
|
| `[door NAME]` | a door program | [Doors](Doors) |
|
|
| `screens_dir` (in `[general]`), `[menu NAME]`, `[strings]` | the sysop's screens, menus and prompts | [Customization](Customization) |
|
|
| `[finger]`, `[gopher]` | the finger and gopher servers | [Finger and gopher](Finger-and-Gopher) |
|
|
| `database` (in `[general]`) | SQLite's file, or a PostgreSQL or MySQL server | [Databases](Databases) |
|
|
| `[level N]`, `new_user_level`, `validated_level` (in `[general]`) | access levels | [Access levels](Access-Levels) |
|
|
| `[http]` | the HTTP API, its WebSockets, the web terminal and metrics | [HTTP API](HTTP-API) |
|
|
| `page_command` (in `[general]`) | telling the sysop of a page when they are not on | [Chat and paging](Chat-and-Paging) |
|
|
|
|
`bbs check` reads the file and says what it found, with a warning for
|
|
anything risky (a password that may cross in the clear, a socket that
|
|
trusts whoever connects, a link without a password).
|
|
|
|
**See also:** [Modem callers](Modem-Callers), [TN3270](TN3270), [Security](Security)
|