Configuration File
term-serve supports TOML configuration through term-serve.conf or an explicit --config path.
Discovery order
Section titled “Discovery order”--config <path>./term-serve.confin the invocation directory
Precedence
Section titled “Precedence”defaults < config file < PORT env var < CLI flags
Only PORT is read from the environment.
Full config example
Section titled “Full config example”[server]port = 31337host = "127.0.0.1"
[auth]# auth_token = "replace-me"
[shell]# cwd = "/tmp"
[terminal]theme = "gruvware-dark"font = "TermServe Mono"font_size = [11, 8]
[logging]verbose = false
[command]# argv = ["htop", "-d", "10"]Minimal top-level config
Section titled “Minimal top-level config”Only these flat keys are allowed at top level:
host = "100.64.12.31"port = 3001auth_token = "my-project-token"Font size format
Section titled “Font size format”- CLI:
--font-size 12or--font-size 14,10 - Config:
font_size = 12orfont_size = [14, 10]
The two-value form means [desktop, mobile].
Host/public behavior
Section titled “Host/public behavior”--publicis an alias for--host 0.0.0.0.hostandpublicare mutually exclusive intent.- In config,
server.public = truesets host to0.0.0.0.
For exact key/value expectations, see Config Schema.