diff --git a/homematic/CHANGELOG.md b/homematic/CHANGELOG.md index 885196f..2088aa0 100644 --- a/homematic/CHANGELOG.md +++ b/homematic/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 10.1 + +- Fix issue with SSL + ## 10.0 - Add Ingress support diff --git a/homematic/config.json b/homematic/config.json index 173058c..d0e9597 100644 --- a/homematic/config.json +++ b/homematic/config.json @@ -1,6 +1,6 @@ { "name": "HomeMatic CCU", - "version": "10.0", + "version": "10.1", "slug": "homematic", "description": "HomeMatic central based on OCCU", "url": "https://github.com/home-assistant/hassio-addons/tree/master/homematic", diff --git a/homematic/data/nginx.conf b/homematic/data/nginx.conf index 0a75181..02a14f6 100644 --- a/homematic/data/nginx.conf +++ b/homematic/data/nginx.conf @@ -21,6 +21,12 @@ http { '' close; } + # https://stackoverflow.com/questions/21230918/nginx-scheme-variable-behind-load-balancer/21911864#21911864 + map $http_x_forwarded_proto $real_scheme { + default $http_x_forwarded_proto; + '' $scheme; + } + # Ingress server { listen 8099 default_server; @@ -38,7 +44,7 @@ http { location / { proxy_pass http://127.0.0.1:80; - proxy_redirect ~^/(.+)$ $scheme://$http_host%%INGRESS_ENTRY%%/$1; + proxy_redirect ~^/(.+)$ $real_scheme://$http_host%%INGRESS_ENTRY%%/$1; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;