From 287e1d7a42d7f41b143de0b382126eb03e80115f Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Mon, 8 Oct 2018 13:15:00 +0300 Subject: [PATCH] Don't automatically redirect HTTP device API to HTTPS. --- msa/docker/haproxy/config/haproxy.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msa/docker/haproxy/config/haproxy.cfg b/msa/docker/haproxy/config/haproxy.cfg index 2499686b87..5f174653f9 100644 --- a/msa/docker/haproxy/config/haproxy.cfg +++ b/msa/docker/haproxy/config/haproxy.cfg @@ -35,8 +35,9 @@ frontend http-in reqadd X-Forwarded-Proto:\ http + acl transport_http_acl path_beg /api/v1/ acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/ - redirect scheme https if !letsencrypt_http_acl + redirect scheme https if !letsencrypt_http_acl !transport_http_acl use_backend letsencrypt_http if letsencrypt_http_acl default_backend tb-web-backend