Commit 0a3ac0f700e276d15e0d02914fbd1e43ea2cabf1

Authored by Igor Kulikov
1 parent 90fb58dc

Update haproxy routing to handle rulenodes UI assets

... ... @@ -70,12 +70,13 @@ frontend http-in
70 70 acl transport_http_acl path_beg /api/v1/
71 71 acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
72 72 acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
  73 + acl tb_rulenode_assets path_reg ^/assets/help/.*/rulenode/.*$
73 74
74 75 redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true }
75 76
76 77 use_backend letsencrypt_http if letsencrypt_http_acl
77 78 use_backend tb-http-backend if transport_http_acl
78   - use_backend tb-api-backend if tb_api_acl
  79 + use_backend tb-api-backend if tb_api_acl or tb_rulenode_assets
79 80
80 81 default_backend tb-web-backend
81 82
... ... @@ -88,9 +89,10 @@ frontend https_in
88 89
89 90 acl transport_http_acl path_beg /api/v1/
90 91 acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
  92 + acl tb_rulenode_assets path_reg ^/assets/help/.*/rulenode/.*$
91 93
92 94 use_backend tb-http-backend if transport_http_acl
93   - use_backend tb-api-backend if tb_api_acl
  95 + use_backend tb-api-backend if tb_api_acl or tb_rulenode_assets
94 96
95 97 default_backend tb-web-backend
96 98
... ...