Documentation ¶
Index ¶
- func AcceptChallenge(c *config.Config) http.HandlerFunc
- func CertificateInject(info *tls.ClientHelloInfo) (*tls.Certificate, error)
- func Http(c *config.Config)
- func HttpMiddleware(next http.HandlerFunc) http.HandlerFunc
- func Https() *http.Server
- func ReverseProxyHandler(w http.ResponseWriter, r *http.Request)
- func ReverseProxyOrRedirect(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptChallenge ¶
func AcceptChallenge(c *config.Config) http.HandlerFunc
func CertificateInject ¶
func CertificateInject(info *tls.ClientHelloInfo) (*tls.Certificate, error)
func HttpMiddleware ¶
func HttpMiddleware(next http.HandlerFunc) http.HandlerFunc
func ReverseProxyHandler ¶
func ReverseProxyHandler(w http.ResponseWriter, r *http.Request)
ReverseProxyHandler 根据证书配置的反向代理
func ReverseProxyOrRedirect ¶
func ReverseProxyOrRedirect(w http.ResponseWriter, r *http.Request)
ReverseProxyOrRedirect 启动http时, 判断是否强转https
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.