updated haproxy configuration for /.well-known/... apis

This commit is contained in:
dashevchenko 2024-05-20 17:42:53 +03:00
parent e755d0072e
commit dd573426a3

View File

@ -96,7 +96,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_images_api_acl path_beg /api/images/ acl tb_images_api_acl path_beg /api/images/
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/ acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/ /.well-known/assetlinks.json /.well-known/apple-app-site-association
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 }
@ -124,7 +124,7 @@ frontend https_in
acl transport_http_acl path_beg /api/v1/ acl transport_http_acl path_beg /api/v1/
acl tb_images_api_acl path_beg /api/images/ acl tb_images_api_acl path_beg /api/images/
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/ acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/ /.well-known/assetlinks.json /.well-known/apple-app-site-association
use_backend tb-http-backend if transport_http_acl use_backend tb-http-backend if transport_http_acl
use_backend tb-images-api-backend if tb_images_api_acl use_backend tb-images-api-backend if tb_images_api_acl