57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"server": {
|
|
"host": "127.0.0.1",
|
|
"port": 8080,
|
|
"public_hosts": [
|
|
"webvpn.dearsky.top",
|
|
"localhost",
|
|
"127.0.0.1",
|
|
"[::1]"
|
|
],
|
|
"trust_proxy_headers": true,
|
|
"trusted_proxies": [
|
|
"127.0.0.1",
|
|
"::1"
|
|
],
|
|
"trust_cloudflare_connecting_ip": false,
|
|
"tls_cert": "",
|
|
"tls_key": "",
|
|
"access_log": true
|
|
},
|
|
"session": {
|
|
"secret": "请用 python server.py init 生成随机值",
|
|
"hours": 12,
|
|
"route_ttl_minutes": 60,
|
|
"cookie_secure": "auto"
|
|
},
|
|
"database": {
|
|
"url": "sqlite:///webvpn.sqlite3"
|
|
},
|
|
"sync": {
|
|
"enabled": false,
|
|
"node_id": "node-a",
|
|
"secret": "",
|
|
"peers": [],
|
|
"interval_seconds": 60,
|
|
"request_timeout": 30,
|
|
"verify_tls": true,
|
|
"clock_skew_seconds": 300,
|
|
"max_sync_bytes": 67108864,
|
|
"settings_updated_at": ""
|
|
},
|
|
"proxy": {
|
|
"connect_timeout": 10,
|
|
"read_timeout": 120,
|
|
"websocket_idle_timeout": 3600,
|
|
"verify_tls": true,
|
|
"allow_private_networks": true,
|
|
"allow_link_local": false,
|
|
"rewrite_html": true,
|
|
"inject_runtime_shim": true,
|
|
"max_rewrite_bytes": 8388608
|
|
},
|
|
"allowed_hosts": [
|
|
"*.home.arpa"
|
|
]
|
|
}
|