add global config support

This commit is contained in:
wjqserver 2025-06-30 15:31:14 +08:00
parent cd1e1a42f3
commit 34d553a890
23 changed files with 1682 additions and 343 deletions

19
gen/default.go Normal file
View file

@ -0,0 +1,19 @@
package gen
var (
DefaultGlobalConfig = CaddyGlobalConfig{
Debug: false,
PortsConfig: CaddyGlobalPortsConfig{
AdminPort: "localhost:2019",
HTTPPort: 80,
HTTPSPort: 443,
},
Metrics: true,
LogConfig: CaddyGlobalLogConfig{
Level: "INFO",
RotateSize: "10MB",
RotateKeep: "10",
RotateKeepForTime: "24h",
},
}
)