mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 23:41:23 +02:00
repalce redirect_to_https with entrypoint middleware
This commit is contained in:
11
cmd/main.go
11
cmd/main.go
@@ -132,12 +132,11 @@ func main() {
|
||||
}
|
||||
|
||||
server.StartServer(server.Options{
|
||||
Name: "proxy",
|
||||
CertProvider: autocert,
|
||||
HTTPAddr: common.ProxyHTTPAddr,
|
||||
HTTPSAddr: common.ProxyHTTPSAddr,
|
||||
Handler: http.HandlerFunc(entrypoint.Handler),
|
||||
RedirectToHTTPS: config.Value().Entrypoint.RedirectToHTTPS,
|
||||
Name: "proxy",
|
||||
CertProvider: autocert,
|
||||
HTTPAddr: common.ProxyHTTPAddr,
|
||||
HTTPSAddr: common.ProxyHTTPSAddr,
|
||||
Handler: http.HandlerFunc(entrypoint.Handler),
|
||||
})
|
||||
server.StartServer(server.Options{
|
||||
Name: "api",
|
||||
|
||||
Reference in New Issue
Block a user