From 56794033e02625ee551c2723841dc4bbe16817d9 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 19 Dec 2017 22:16:13 +0100 Subject: [PATCH] Set proper scheme in X-Forwarded-Proto for OpenMapKit --- openmapkit.sh | 2 +- openmapkit/etc/nginx/apps/openmapkit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openmapkit.sh b/openmapkit.sh index 5015784..a741ad0 100755 --- a/openmapkit.sh +++ b/openmapkit.sh @@ -18,7 +18,7 @@ cp ${SOURCE_DIR}/etc/init.d/openmapkit /etc/init.d/openmapkit rc-update add openmapkit boot service openmapkit start -# Create nginx site definition +# Create nginx app definition cp ${SOURCE_DIR}/etc/nginx/apps/openmapkit /etc/nginx/apps/openmapkit cp ${SOURCE_DIR}/etc/nginx/conf.d/openmapkit.conf /etc/nginx/conf.d/openmapkit.conf diff --git a/openmapkit/etc/nginx/apps/openmapkit b/openmapkit/etc/nginx/apps/openmapkit index 289aab2..64d4e75 100644 --- a/openmapkit/etc/nginx/apps/openmapkit +++ b/openmapkit/etc/nginx/apps/openmapkit @@ -4,6 +4,6 @@ error_log /var/log/nginx/openmapkit.error.log; location / { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Host $host:$server_port; - proxy_set_header X-Forwarded-Proto https; + proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:9007; }