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; }