Common Configuration

Common configuration structures.

LogConfig

FieldTypeDescriptionRequired
tostringLog output file path. If set to console, logs will be printed to standard output.No
levelstringLog level. Options are trace, debug, info, warn, error. Default level is info.No
maxDaysintMaximum days to retain log files, default is 3 days.No
disablePrintColorboolDisable log colors in standard output.No

WebServerConfig

FieldTypeDescriptionRequired
addrstringwebServer listening address, default is 127.0.0.1.No
portintwebServer listening port.Yes
userstringHTTP BasicAuth username.No
passwordstringHTTP BasicAuth password.No
assetsDirstringStatic resource directory. Dashboard resources are packaged in the binary file by default. Use this parameter to specify custom static resources.No
pprofEnableboolEnable Go HTTP pprof for application debugging.No
tlsTLSConfigTLS related configuration for Dashboard HTTPS.No

TLSConfig

FieldTypeDescriptionRequired
certFilestringTLS certificate file path.Yes
keyFilestringTLS key file path.Yes
trustedCaFilestringCA certificate file path.No
serverNamestringTLS Server name.No

QUICOptions

FieldTypeDescriptionRequired
keepalivePeriodintDefault value is 10 seconds.No
maxIdleTimeoutintDefault value is 30 seconds.No
maxIncomingStreamsintDefault value is 100000.No

PortsRange

FieldTypeDescriptionRequired
startintStarting port.No
endintEnding port.No
singleintSingle port.No

HeaderOperations

FieldTypeDescriptionRequired
setmap[string]stringSet specified KV values in Header.No

HTTPHeader

FieldTypeDescriptionRequired
namestringHeader name.Yes
valuestringHeader value.Yes

ValueSource

FieldTypeDescriptionRequired
typestringData source type. Options are “file” and “exec”.Yes
fileFileSourceFile data source configuration, required when type is “file”.No
execExecSourceExternal command data source configuration, required when type is “exec”. Requires --allow-unsafe=TokenSourceExec flag at startup.No

FileSource

FieldTypeDescriptionRequired
pathstringFile path.Yes

ExecSource

FieldTypeDescriptionRequired
commandstringPath to the command to execute.Yes
args[]stringList of command arguments.No
env[]ExecEnvVarAdditional environment variables.No

ExecEnvVar

FieldTypeDescriptionRequired
namestringEnvironment variable name.Yes
valuestringEnvironment variable value.Yes

NatTraversalConfig

FieldTypeDescriptionRequired
disableAssistedAddrsboolDisable assisted connections using local network interface addresses. When enabled, only uses STUN-discovered public addresses for NAT hole punching, avoiding potentially slow local network interfaces (e.g., VPN). Default is false.No
Last modified January 4, 2026: add docs for v0.66 (#106) (191a9bc)