Merge pull request #10828 from dashevchenko/haproxy_for_well_known

Updated haproxy configuration for /.well-known/... apis
This commit is contained in:
Viacheslav Klimov 2024-05-21 15:45:28 +03:00 committed by GitHub
commit f663f64504
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,7 @@ frontend http-in
acl transport_http_acl path_beg /api/v1/
acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
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 }
@ -124,7 +124,7 @@ frontend https_in
acl transport_http_acl path_beg /api/v1/
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-images-api-backend if tb_images_api_acl