Skip to content

Server Settings

JDevWebb edited this page Nov 26, 2026 · 1 revision

Every setting of the Cross-Com server, in crosscom-server.toml.

The server reads crosscom-server.toml from the folder it's started in, or the file --config FILE names. Every setting is optional; a missing file means all the defaults. In Docker, the same settings can come from the environment (docker/.env), which wins over the file. A server hosted from the launcher writes its own settings at each start, so there's nothing to edit there.

Relative paths (database, news, logs_dir) are from the folder the server is started in.

The whole file, with the defaults

public_address = "127.0.0.1"
listen_ip = "0.0.0.0"
http_port = 80
auth_port = 21030
secure_port = 21031
# https_port = 80            (off unless set)
answer_as_reached = false
database = "crosscom.db"
log_level = "info"
signup = false
# signup_code = "..."        (none unless set)
news = "news.toml"
trusted_proxies = []
accept_logs = true
logs_dir = "logs"
logs_max_mb = 2048
logs_keep_days = 30

Addresses and ports

Setting Environment Default What it does
public_address CROSSCOM_PUBLIC_ADDRESS 127.0.0.1 The address players connect to: a public address, a domain name, or an address on your network or VPN. The game is told to sign in here. A name is looked up as the server starts (restart it when the name moves).
listen_ip 0.0.0.0 (all) The address to listen on.
http_port 80 The web side: the game's online config and the API. The game always asks on port 80, so keep it 80; for another port outside, forward that port to 80 (players' join codes carry the port outside).
auth_port 21030 The game's sign-in (UDP). Players must reach it on the same number.
secure_port 21031 The game's services (UDP). Players must reach it on the same number.
answer_as_reached false Gives each player on this machine, your network or a VPN the server's address there, whatever public_address says. For a server only for your network and VPN (public_address your address on the network, and VPN players then get the address on the VPN). Leave it off in Docker: inside a container, the server would give its container's address.

A server whose public_address is a public one always gives players on its own network or a VPN its address there (they'd otherwise go out through the router and back in, which many routers don't do), and shows other players those players at its public address.

HTTPS

The launcher and the client talk to a server on the internet over HTTPS only (sign-in, sign-up, logs, the overlay). A server on your network or VPN without HTTPS is spoken to over plain HTTP. Two ways to give it HTTPS:

Its own certificate

Setting Environment Default What it does
https_port CROSSCOM_HTTPS_PORT off Serves HTTPS with a certificate of its own on this port. Set it to http_port (80) to serve HTTPS and plain HTTP on the same port: one port to forward.

The certificate is made the first time and kept beside the database (https-certificate.der, and its key https-key.der: keep that private). Players set up with a join code: the address and port they reach the server at, #, and the certificate's SHA-256, which the server logs as it starts. Deleting the two files makes a new certificate, and new join codes.

https_port needs listen_ip to be 0.0.0.0 or 127.0.0.1: requests go on from HTTPS to the HTTP side on this machine.

A domain, with a reverse proxy

For a public server: Caddy (or another reverse proxy) in front of port 80, with a certificate for your domain. The repository's docker/compose.https.yaml sets it up (Linux and Docker Server).

Setting Environment Default What it does
trusted_proxies CROSSCOM_TRUSTED_PROXIES (separated by commas or spaces) none The reverse proxies in front of the HTTP side, by address or network (172.31.80.10, 172.31.80.0/24). From them, X-Forwarded-For names the client and X-Forwarded-Proto says whether it used HTTPS; sign-ins through them are taken over HTTPS only. From anywhere else those headers are ignored.

Accounts and sign-up

Players have no passwords: their launcher's identity signs them in (Your Account and Identity).

Setting Environment Default What it does
signup CROSSCOM_SIGNUP (true/false) false Lets players make their own accounts in the launcher. Off: you make accounts with add-account.
signup_code CROSSCOM_SIGNUP_CODE none A code players must give to sign up. At least 12 characters (the server refuses a shorter one); make it random. Without one, anyone who can reach the server can make accounts.
database crosscom.db The database: accounts, stats, friends, squads, challenges, connection records. The HTTPS certificate is kept beside it.

Sign-up allows 10 a day from one address, and 200 an hour in all.

crosscom-server add-account NAME makes an account with a password (for test players and bots; it asks for the password). Players make theirs in the launcher.

News

Setting Default What it does
news news.toml The news the game shows in its main menu (the Ghost Feed) and on Community Messages, read at each sign-in: edits need no restart.
[[news]]
title = "Double XP weekend"                  # up to 60 characters
body = "All weekend, every ranked match."    # up to 500 bytes
date = 2026-11-20                            # today if left out
shows = "multiplayer"                        # or "campaign" or "guerrilla"

The first item without shows appears in every view; others without it only under Community Messages. The game takes up to 14. Without the file, players see a short welcome.

Logs

Setting Environment Default What it does
log_level CROSSCOM_LOG_LEVEL info How much the server itself logs: error, warning, info, debug or trace.
accept_logs CROSSCOM_ACCEPT_LOGS true Takes the logs players' games send after each match (only from addresses their account played from lately). false refuses them.
logs_dir logs Where players' logs are kept, a folder a day.
logs_max_mb CROSSCOM_LOGS_MAX_MB 2048 The most they may take in all, in MiB; past it the oldest go.
logs_keep_days CROSSCOM_LOGS_KEEP_DAYS 30 Days they're kept.

crosscom-server logs list and logs show REPORT read them; crosscom-server connections DAYS sums up how players' joins into matches went.

Examples

At home, for friends on the internet (ports forwarded, a join code):

public_address = "203.0.113.24"
https_port = 80
signup = true
signup_code = "k3Vq9TzW2pLm8Rx4"

Only for your network and a VPN (no forwarding):

public_address = "192.168.1.20"
answer_as_reached = true
https_port = 80
signup = true

A public server with a domain (Docker, Caddy in front): see Linux and Docker Server; trusted_proxies is set by compose.https.yaml.

Clone this wiki locally