40 lines
1.1 KiB
Go
40 lines
1.1 KiB
Go
package db
|
|
|
|
/*
|
|
// 通用配置结构
|
|
type CaddyfileConfig struct {
|
|
Domain string `json:"domain"`
|
|
TmplType string `json:"tmpl_type"`
|
|
UpStream UpStreamConfig `json:"upstream"`
|
|
FileServer FileServerConfig `json:"file_server"`
|
|
Headers map[string][]string `json:"headers"`
|
|
Log LogConfig `json:"log"`
|
|
ErrorPage ErrorPageConfig `json:"error_page"`
|
|
Encode EncodeConfig `json:"encode"`
|
|
}
|
|
|
|
type UpStreamConfig struct {
|
|
UpStream string `json:"upstream"`
|
|
MutiUpStream bool `json:"muti_upstream"`
|
|
UpStreams []string `json:"upstream_servers"`
|
|
UpStreamHeaders map[string][]string `json:"upstream_headers"`
|
|
}
|
|
|
|
type FileServerConfig struct {
|
|
FileDirPath string `json:"file_dir_path"`
|
|
EnableBrowser bool `json:"enable_browser"`
|
|
}
|
|
|
|
type LogConfig struct {
|
|
EnableLog bool `json:"enable_log"`
|
|
LogDomain string `json:"log_domain"`
|
|
}
|
|
|
|
type ErrorPageConfig struct {
|
|
EnableErrorPage bool `json:"enable_error_page"`
|
|
}
|
|
|
|
type EncodeConfig struct {
|
|
EnableEncode bool `json:"enable_encode"`
|
|
}
|
|
*/
|