]> git.basschouten.com Git - openhab-addons.git/commitdiff
[hueemulation] Fix nginx example configuration (#9550)
authorMerlin Westphal <33016704+DieserMerlin@users.noreply.github.com>
Sun, 3 Jan 2021 00:06:56 +0000 (01:06 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Jan 2021 00:06:56 +0000 (16:06 -0800)
bundles/org.openhab.io.hueemulation/README.md

index 5961bf284b41655f0e04dace7b6b5d0ab2d5aec7..56e4c53b69d8f91f6a79adda7990a324cbc699dc 100644 (file)
@@ -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).