fix additions

This commit is contained in:
Dmitriymush 2021-01-13 16:40:50 +02:00
parent fd2db7498f
commit 20a4163cce
2 changed files with 6 additions and 6 deletions

View File

@ -58,7 +58,7 @@ frontend http-in
acl transport_http_acl path_beg /api/v1/ acl transport_http_acl path_beg /api/v1/
acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/ acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/ acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true } redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true }
@ -76,7 +76,7 @@ frontend https_in
reqadd X-Forwarded-Proto:\ https reqadd X-Forwarded-Proto:\ https
acl transport_http_acl path_beg /api/v1/ acl transport_http_acl path_beg /api/v1/
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/ acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
use_backend tb-http-backend if transport_http_acl use_backend tb-http-backend if transport_http_acl
use_backend tb-api-backend if tb_api_acl use_backend tb-api-backend if tb_api_acl

View File

@ -27,6 +27,10 @@ const PROXY_CONFIG = {
"target": ruleNodeUiforwardUrl, "target": ruleNodeUiforwardUrl,
"secure": false, "secure": false,
}, },
"/static/widgets": {
"target": forwardUrl,
"secure": false,
},
"/oauth2": { "/oauth2": {
"target": forwardUrl, "target": forwardUrl,
"secure": false, "secure": false,
@ -35,10 +39,6 @@ const PROXY_CONFIG = {
"target": forwardUrl, "target": forwardUrl,
"secure": false, "secure": false,
}, },
"/static": {
"target": forwardUrl,
"secure": false,
},
"/api/ws": { "/api/ws": {
"target": wsForwardUrl, "target": wsForwardUrl,
"ws": true, "ws": true,