Configuration
Relioncross is configured by one YAML file, passed as the first argument (default relioncross.yaml; if it does not exist, defaults are used). It replaces the retail server’s FLServer.cfg, DACOMsrv.ini and motd.dat. Every key is optional, and an unknown key is an error, so typos do not pass silently.
Example
server:
name: Relioncross
motd: "Welcome, pilot."
password: null # set to require a password to join
max_players: 64
listen: 0.0.0.0:2302 # UDP: LAN discovery and join
data:
root: /data/freelancer # install root containing DATA/
storage:
dir: /state # economy overrides (accounts and characters later)
api:
listen: 0.0.0.0:8080
token: null # bearer token for writes; null = read-only
auth:
provider: open # login backend: open or accounts
accounts_file: null # only for provider: accounts
Reference
| Key | Default | Meaning |
|---|---|---|
server.name | Relioncross | Name shown in LAN discovery replies. |
server.motd | empty | Message of the day. Reserved: not sent to players yet. |
server.password | none | If set, join must present it. |
server.max_players | 64 | Join is rejected with “server full” beyond this. |
server.listen | 0.0.0.0:2302 | UDP socket for the LAN protocol. |
server.session_timeout_secs | 60 | A session with no valid datagram for this long frees its slot. 0 keeps sessions for ever. |
server.rate_limit_per_sec | 50 | Average datagrams per second one address may send. Extra datagrams are dropped with no reply. 0 turns the limit off. |
server.rate_limit_burst | 100 | Datagrams one address may send at once before the limit drops them. |
server.chat_max_len | 200 | Longest chat line, in characters. A longer line is rejected. |
server.chat_per_minute | 30 | Chat lines one session may send a minute on average, after a burst of 5. 0 turns the limit off. |
server.tick_hz | 10 | Position snapshots per second sent to each player in space. |
data.root | /data/freelancer | Your Freelancer install. Market data is read from DATA/EQUIPMENT (goods.ini, market_*.ini). |
storage.dir | /state | Writable directory. Today it holds economy-overrides.json. |
api.listen | 0.0.0.0:8080 | TCP socket for the HTTP API and dashboard. |
api.token | none | Bearer token required for every PUT, POST and DELETE. With no token the API is read-only (403 on writes). |
auth.provider | open | Login backend: open accepts any non-empty display name (LAN and development), accounts checks each join against a local file of password hashes. See local accounts. |
auth.accounts_file | accounts.json in storage.dir | Path of the accounts file. Used only with auth.provider: accounts. |
Local accounts
Set auth.provider: accounts to check each join against a file the server owns. No outside service is called. Clients send the password in account_password (join rules).
The file is JSON, {"accounts": {"Name": "<hash>"}}. Each hash is an Argon2id string with its own random salt, and the file never holds a password. The server writes it with mode 0600. At start it refuses a file that group or other can read (run chmod 600), a missing or unreadable file, a hash that does not parse, and two names that differ only in case. Names match case-insensitively.
Edit the file with the binary, not by hand. The password is read from standard input, so it is never on a command line:
read -rs PW && printf %s "$PW" | relioncross accounts add Pilot --config relioncross.yaml
relioncross accounts list --config relioncross.yaml
relioncross accounts remove Pilot --config relioncross.yaml
add on an existing name changes its password. A name is 1 to 32 characters with no control characters. A password is 8 to 256 bytes. The server reads the file once at start, so restart it after a change. Bans apply after the login, as with open.
Not finished. There is no lockout: each wrong attempt costs the server one hash, and the per-address datagram limit is the only brake. There is no sign-up, password reset or reload without a restart. The datagrams are not encrypted, so the password crosses the LAN in clear text. Not yet tried with a real Rustlancer client.
Security notes
- The LAN protocol is unencrypted, and with the default
openprovider anyone can pick any name. Useaccounts, and run it on a trusted network only. - The HTTP API has no TLS. If you expose it beyond localhost, put it behind a reverse proxy that terminates TLS, and set
api.token. - Bind to
127.0.0.1if only local tools use the API.
Relioncross is unofficial and not affiliated with Microsoft or the IONCROSS community. It contains no Microsoft or IONCROSS files; bring your own copy of Freelancer.