Update haproxy routing to handle rulenodes UI assets
This commit is contained in:
parent
90fb58dc88
commit
0a3ac0f700
@ -70,12 +70,13 @@ frontend http-in
|
||||
acl transport_http_acl path_beg /api/v1/
|
||||
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/widgets/
|
||||
acl tb_rulenode_assets path_reg ^/assets/help/.*/rulenode/.*$
|
||||
|
||||
redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true }
|
||||
|
||||
use_backend letsencrypt_http if letsencrypt_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 or tb_rulenode_assets
|
||||
|
||||
default_backend tb-web-backend
|
||||
|
||||
@ -88,9 +89,10 @@ frontend https_in
|
||||
|
||||
acl transport_http_acl path_beg /api/v1/
|
||||
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
|
||||
acl tb_rulenode_assets path_reg ^/assets/help/.*/rulenode/.*$
|
||||
|
||||
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 or tb_rulenode_assets
|
||||
|
||||
default_backend tb-web-backend
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user