实现TLS配置

This commit is contained in:
刘祥超
2020-10-01 16:51:15 +08:00
parent d0d054e024
commit 7d2b061cd9
3 changed files with 11 additions and 3 deletions

View File

@@ -41,10 +41,12 @@ type OriginConfig struct {
// - http|https 返回2xx-3xx认为成功
HealthCheck *HealthCheckConfig `yaml:"healthCheck" json:"healthCheck"`
Cert *sslconfigs.SSLCertConfig `yaml:"cert" json:"cert"` // 请求源服务器用的证书
CertRef *sslconfigs.SSLCertRef `yaml:"certRef" json:"certRef"` // 证书的引用
Cert *sslconfigs.SSLCertConfig `yaml:"cert" json:"cert"` // 请求源服务器用的证书
// ftp
FTP *OriginFTPConfig `yaml:"ftp" json:"ftp"`
FTPServerRef *FTPServerRef `yaml:"ftpServerRef" json:"ftpServerRef"`
FTPServer *FTPServerConfig `yaml:"ftpServer" json:"ftpServer"`
connTimeoutDuration time.Duration
readTimeoutDuration time.Duration