Repository navigation
Expand file tree
/
Copy pathterrustia.toml.example
More file actions
99 lines (82 loc) · 4.87 KB
/
Copy pathterrustia.toml.example
File metadata and controls
99 lines (82 loc) · 4.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Copy to terrustia.toml to override the defaults. Every key is optional.
#
# No file at all is also a valid way to configure this: every key below has a
# TERRUSTIA_<UPPERCASE_KEY> environment variable equivalent (TERRUSTIA_LISTEN,
# TERRUSTIA_MAX_PLAYERS, TERRUSTIA_WORLD_NAME, ...) for Docker/automation use, where there is
# often no shell around the process to pass a --flag and no volume mount to put a file on.
# Precedence is defaults < this file < environment < an explicit CLI flag.
listen = "0.0.0.0:7777"
max_players = 8
motd = "Welcome to Terrustia"
# Leave empty for an open server. Clients are prompted before they get a player slot.
password = ""
# Serve an existing save instead of generating a world. When set, the world_* keys below are
# ignored because the file carries its own dimensions.
#
# Only a world loaded from a file can be saved. A generated world is playable but ephemeral.
# world_file = "/path/to/World.wld"
# Where saves go. Defaults to world_file; set it to leave the original untouched.
# save_file = "/path/to/Saved.wld"
# Seconds between automatic saves, or 0 to disable them. The disk write happens off the game task;
# what the tick pays is a copy of the tile array, about 30 ms on a full-size world.
autosave_secs = 300
# Both must be a whole number of 200x150 sections: the client sizes its own grid with
# `maxTilesX / 200`, truncating, so a ragged edge is world it can never ask for.
world_name = "Terrustia"
world_width = 4200
world_height = 1200
seed = 0
# Longest chat line accepted from a client, in bytes.
max_chat_len = 500
# Drop a connection that sends nothing at all for this long. A playing client sends control
# updates continuously, so this only catches dead sockets and stalled handshakes.
idle_timeout_secs = 60
# How many sockets may be open at once before anyone has said who they are, and how many of those
# one address may hold open at a time. Separate from max_players: a socket is accepted, and counts
# against these, well before it has a player slot.
max_connections = 512
max_connections_per_address = 8
# How long a connection has to finish the handshake before it is dropped. idle_timeout_secs above
# resets on any byte, so this is the backstop that makes a slowly-trickling connection's slot
# finite.
handshake_timeout_secs = 30
# The web admin panel. Off by default. `panel_listen` must be loopback (127.0.0.1 or ::1) — the
# server refuses to start otherwise. Remote panel access needs a deliberate step (an SSH tunnel,
# for example), not an accident of opening this up. Sign in with the same accounts `/register`
# creates.
panel_enabled = false
panel_listen = "127.0.0.1:7778"
# Check GitHub for a newer, signature-verified release on boot, and say so — console log, plus an
# in-game notice to the first recognised admin who signs in afterward. Applying it is always a
# separate, manual `terrustia update`; this only checks and notifies. Turn off for an air-gapped
# host, or to stop this server from talking to GitHub at all.
update_check_enabled = true
# Attempt UPnP automatic port-mapping for `listen` on startup. On by default; entirely background
# and non-fatal — when no UPnP-capable router answers, or it refuses, this logs a specific fallback
# message and moves on. Has nothing to do with the panel, which stays loopback-only regardless.
upnp_enabled = true
# The audit log (admin::audit): every ban, kick, mute, group change and permission edit, one JSON
# line per event, beside the world. Rotates once the live file would reach audit_log_max_bytes,
# keeping audit_log_keep_segments rotated segments beyond it.
audit_log_max_bytes = 8388608
audit_log_keep_segments = 5
# Moderation toolkit knobs. `/mute` and `/unmute` always work (gated by the server.mute/
# server.unmute permissions, not by a config flag) — everything below is OFF by default, so a
# fresh server behaves exactly like vanilla until an operator opts in.
#
# Escalate a repeat offender automatically: each time a still-muted player speaks again, their
# mute is pushed out by mute_escalation_secs, capped at mute_escalation_max_secs from the moment
# of that escalation (0 means no cap).
mute_escalation_enabled = false
mute_escalation_secs = 300
mute_escalation_max_secs = 3600
# A minimum gap, in milliseconds, between one account's chat lines — a line sent before the
# previous one's cooldown has elapsed is dropped rather than broadcast. 0 disables it.
chat_cooldown_ms = 0
# Kick a client that edits tiles or moves liquid faster than the game's own ceilings allow
# (100 placements, 500 breaks, 50 liquid moves, each decaying every tick). This is vanilla's
# `secure=1` / `-secure`, and like vanilla it is off by default: the ceilings are tight enough that
# ordinary play reaches them, and a stick of dynamite clears more tiles in one burst than the break
# ceiling allows. Turn it on if you would rather disconnect a suspected scripted client than let it
# keep going.
spam_check = false