Documentation
¶
Index ¶
- func CaddyConfig(url string) ([]byte, error)
- func CaddyTmpl(templateData ProxyTemplate) (string, error)
- func CreateConf(fileName string) error
- func GetCurrentTimeInBeijing() string
- func RestoreOriginalFile(fileName string, content []byte)
- func UpdateConfig(url, key string) error
- func UpdateTimeConfig(siteName string) error
- type ProxyTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaddyTmpl ¶
func CaddyTmpl(templateData ProxyTemplate) (string, error)
func RestoreOriginalFile ¶ added in v0.1.24
restoreOriginalFile 恢复原文件的内容
Types ¶
type ProxyTemplate ¶
type ProxyTemplate struct {
ServerName string `json:"server_name"` // 站点名称
AutoHttps bool `json:"auto_https"` // 是否开启自动https (true是关闭)
CorazaConfFile string `json:"coraza_conf_file,omitempty"` // Coraza配置文件名称(我自己重组)
DomainName string `json:"domain_name"` // 域名
ListenPort string `json:"listen_port"` // 监听端口
ProxyPort string `json:"proxy_port"` // 代理端口
AccessDeniedMessage string `json:"access_denied_message"` // 触发规则拒绝访问提示信息
CreateTime string `json:"create_time,omitempty"` // 站点创建时间
UpdateTime string `json:"update_time"` // 站点更新时间
}
Click to show internal directories.
Click to hide internal directories.