From 07f4cbb231ce580b6acd3e9359a34e0f12ffe7f6 Mon Sep 17 00:00:00 2001 From: Merlin Westphal <33016704+DieserMerlin@users.noreply.github.com> Date: Sun, 3 Jan 2021 01:06:56 +0100 Subject: [PATCH] [hueemulation] Fix nginx example configuration (#9550) --- bundles/org.openhab.io.hueemulation/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.io.hueemulation/README.md b/bundles/org.openhab.io.hueemulation/README.md index 5961bf284b416..56e4c53b69d8f 100644 --- a/bundles/org.openhab.io.hueemulation/README.md +++ b/bundles/org.openhab.io.hueemulation/README.md @@ -158,11 +158,13 @@ You must either ``` server { listen 80; - proxy_pass http://localhost:8080/; - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + location / { + proxy_pass http://localhost:8080/; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } } ``` * or let openHAB run on port 80 (the entire java process requires elevated privileges).