30 lines
632 B
Markdown
30 lines
632 B
Markdown
# Server Config
|
|
|
|
The active server config is `../commonwealth-server.json`.
|
|
|
|
Supported fields:
|
|
|
|
```json
|
|
{
|
|
"host": "0.0.0.0",
|
|
"port": 7777,
|
|
"server_name": "Commonwealth Online Server",
|
|
"server_description": "",
|
|
"max_players": 16,
|
|
"log_verbosity": "info",
|
|
"admin_port": 7779,
|
|
"enable_gns_transport": false,
|
|
"gns_bridge_path": null
|
|
}
|
|
```
|
|
|
|
Generate a default config with:
|
|
|
|
```bash
|
|
dotnet run --project ../CommonwealthOnline.Server.csproj -- config init ../commonwealth-server.json
|
|
```
|
|
|
|
`0.0.0.0` listens on all IPv4 interfaces. `127.0.0.1` is local-only.
|
|
|
|
Do not commit private tokens or runtime `.admin-token` state.
|