add global config support
This commit is contained in:
parent
cd1e1a42f3
commit
34d553a890
23 changed files with 1682 additions and 343 deletions
19
gen/default.go
Normal file
19
gen/default.go
Normal 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",
|
||||
},
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue