Browse Source
Merge pull request #10828 from dashevchenko/haproxy_for_well_known
Updated haproxy configuration for /.well-known/... apis
pull/10841/head
Viacheslav Klimov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
docker/haproxy/config/haproxy.cfg
|
|
|
@ -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 |
|
|
|
|