add global config support
This commit is contained in:
parent
cd1e1a42f3
commit
34d553a890
23 changed files with 1682 additions and 343 deletions
|
|
@ -55,11 +55,12 @@ type CaddyUniEncodeConfig struct {
|
|||
}
|
||||
|
||||
type CaddyGlobalConfig struct {
|
||||
Debug bool `json:"debug"`
|
||||
PortsConfig CaddyGlobalPortsConfig `json:"ports_config"`
|
||||
Metrics bool `json:"metrics"`
|
||||
LogConfig CaddyGlobalLogConfig `json:"log_config"`
|
||||
TLSConfig CaddyGlobalTLSConfig `json:"tls_config"`
|
||||
Debug bool `json:"debug"`
|
||||
PortsConfig CaddyGlobalPortsConfig `json:"ports_config"`
|
||||
Metrics bool `json:"metrics"`
|
||||
LogConfig CaddyGlobalLogConfig `json:"log_config"`
|
||||
TLSConfig CaddyGlobalTLSConfig `json:"tls_config"`
|
||||
TLSSnippetConfig CaddyGlobalSnippetTLSConfig `json:"tls_snippet_config"`
|
||||
}
|
||||
|
||||
type CaddyGlobalPortsConfig struct {
|
||||
|
|
@ -88,8 +89,18 @@ var LogLevelList = map[string]struct{}{
|
|||
}
|
||||
|
||||
type CaddyGlobalTLSConfig struct {
|
||||
Provider string `json:"provider"`
|
||||
Token string `json:"token"`
|
||||
EnableDNSChallenge bool `json:"enable_dns_challenge"`
|
||||
Provider string `json:"provider"`
|
||||
Token string `json:"token"`
|
||||
ECHOuterSNI string `json:"echouter_sni"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
type CaddyGlobalSnippetTLSConfig struct {
|
||||
EnableSiteTLSSnippet bool `json:"enable_site_tls_snippet"`
|
||||
Email string `json:"email"`
|
||||
Provider string `json:"provider"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
// 维护一个提供商列表
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue