Commit 287e1d7a42d7f41b143de0b382126eb03e80115f

Authored by Igor Kulikov
1 parent af8c0bbe

Don't automatically redirect HTTP device API to HTTPS.

... ... @@ -35,8 +35,9 @@ frontend http-in
35 35
36 36 reqadd X-Forwarded-Proto:\ http
37 37
  38 + acl transport_http_acl path_beg /api/v1/
38 39 acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
39   - redirect scheme https if !letsencrypt_http_acl
  40 + redirect scheme https if !letsencrypt_http_acl !transport_http_acl
40 41 use_backend letsencrypt_http if letsencrypt_http_acl
41 42
42 43 default_backend tb-web-backend
... ...