General configuration
General Configuration structure.
LogConfig
Field |
Type |
Description |
Required |
to |
string |
Log output file path, if. Console, the log is printed in
standard output.
|
No |
level |
string |
Log level. Available values are trace, debug, info,
warn. Error, the default level is info.
|
No |
maxDays |
int |
The maximum number of days log files are retained is 3
days by default.
|
No |
disablePrintColor |
bool |
Disables log colors in standard output.
|
No |
WebServerConfig
Field |
Type |
Description |
Required |
addr |
string |
WebServer snooping address, default is 127.0.0.1.
|
No |
port |
int |
webServer Listen on the port.
|
Yes |
user |
string |
HTTP BasicAuth User name.
|
No |
password |
string |
HTTP BasicAuth Password. |
No |
assetsDir |
string |
Static resource directory, Dashboard. The resources of
Use are packaged in binary files by default, and Use the
static resources customized by specifying this
parameter.
|
No |
pprofEnable |
bool |
Start Go HTTP pprof for application debugging.
|
No |
tls |
TLSConfig
|
Dashboard enables TLS-related Configuration for HTTPS.
|
No |
TLSConfig
Field |
Type |
Description |
Required |
certFile |
string |
TLS Certificate file path.
|
Yes |
keyFile |
string |
TLS 密钥文件路径。 |
Yes |
trustedCaFile |
string |
CA Certificate file path.
|
No |
serverName |
string |
TLS Server Name. |
No |
QUICOptions
Field |
Type |
Description |
Required |
keepalivePeriod |
int |
Default value is 10 秒。 |
No |
maxIdleTimeout |
int |
Default value is 30 秒。 |
No |
maxIncomingStreams |
int |
Default value is 100000。
|
No |
PortsRange
Field |
Type |
Description |
Required |
start |
int |
Start port. |
No |
end |
int |
Terminate the port. |
No |
single |
int |
Single port. |
No |
Field |
Type |
Description |
Required |
set |
map[string]string |
在 Header 中设置指定的 KV 值。
|
No |
Last modified November 15, 2023:
fix 404 (#71) (626ce4d)