|
@@ -92,6 +92,7 @@ func ReverseProxtInit() {
|
|
|
MatchingDomain: record.Rootname,
|
|
|
Domain: record.ProxyTarget,
|
|
|
RequireTLS: record.UseTLS,
|
|
|
+ BypassGlobalTLS: record.BypassGlobalTLS,
|
|
|
SkipCertValidations: record.SkipTlsValidation,
|
|
|
RequireBasicAuth: record.RequireBasicAuth,
|
|
|
BasicAuthCredentials: record.BasicAuthCredentials,
|
|
@@ -102,6 +103,7 @@ func ReverseProxtInit() {
|
|
|
RootName: record.Rootname,
|
|
|
Domain: record.ProxyTarget,
|
|
|
RequireTLS: record.UseTLS,
|
|
|
+ BypassGlobalTLS: record.BypassGlobalTLS,
|
|
|
SkipCertValidations: record.SkipTlsValidation,
|
|
|
RequireBasicAuth: record.RequireBasicAuth,
|
|
|
BasicAuthCredentials: record.BasicAuthCredentials,
|
|
@@ -180,6 +182,13 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
useTLS := (tls == "true")
|
|
|
|
|
|
+ bypassGlobalTLS, _ := utils.PostPara(r, "bypassGlobalTLS")
|
|
|
+ if bypassGlobalTLS == "" {
|
|
|
+ bypassGlobalTLS = "false"
|
|
|
+ }
|
|
|
+
|
|
|
+ useBypassGlobalTLS := bypassGlobalTLS == "true"
|
|
|
+
|
|
|
stv, _ := utils.PostPara(r, "tlsval")
|
|
|
if stv == "" {
|
|
|
stv = "false"
|
|
@@ -240,6 +249,7 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
|
|
|
RootName: vdir,
|
|
|
Domain: endpoint,
|
|
|
RequireTLS: useTLS,
|
|
|
+ BypassGlobalTLS: useBypassGlobalTLS,
|
|
|
SkipCertValidations: skipTlsValidation,
|
|
|
RequireBasicAuth: requireBasicAuth,
|
|
|
BasicAuthCredentials: basicAuthCredentials,
|
|
@@ -257,6 +267,7 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
|
|
|
MatchingDomain: subdomain,
|
|
|
Domain: endpoint,
|
|
|
RequireTLS: useTLS,
|
|
|
+ BypassGlobalTLS: useBypassGlobalTLS,
|
|
|
SkipCertValidations: skipTlsValidation,
|
|
|
RequireBasicAuth: requireBasicAuth,
|
|
|
BasicAuthCredentials: basicAuthCredentials,
|
|
@@ -281,6 +292,7 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
|
|
|
Rootname: rootname,
|
|
|
ProxyTarget: endpoint,
|
|
|
UseTLS: useTLS,
|
|
|
+ BypassGlobalTLS: useBypassGlobalTLS,
|
|
|
SkipTlsValidation: skipTlsValidation,
|
|
|
RequireBasicAuth: requireBasicAuth,
|
|
|
BasicAuthCredentials: basicAuthCredentials,
|