Files
chat_grid/server/config.example.toml

42 lines
1.1 KiB
TOML
Raw Normal View History

2026-02-20 08:16:43 -05:00
[server]
# Bind IP for signaling server.
bind_ip = "127.0.0.1"
# Listen port for signaling websocket server.
port = 8765
[network]
# Maximum inbound websocket message size in bytes.
max_message_bytes = 2000000
# If false, TLS cert and key are required and server runs as wss:// only.
allow_insecure_ws = true
[tls]
# Required when allow_insecure_ws = false.
cert_file = ""
key_file = ""
[logging]
level = "INFO"
[storage]
# Item persistence file. Relative paths are resolved from this config file directory.
state_file = "runtime/items.json"
# Debounce window for coalesced item-state writes.
state_save_debounce_ms = 200
# Maximum delay before a pending state write is forced.
state_save_max_delay_ms = 1000
[world]
# Grid width/height in cells. Valid coordinates are 0..grid_size-1.
grid_size = 41
[auth]
# SQLite file for account/session data. Relative paths resolve from this config file directory.
db_file = "runtime/chatgrid.db"
# Password length policy.
password_min_length = 8
password_max_length = 32
# Username length policy.
username_min_length = 2
username_max_length = 32