[hueemulation] Fix nginx example configuration (#9550)

pull/9663/head
Merlin Westphal 2021-01-03 01:06:56 +01:00 committed by GitHub
parent 4b73fbf6c7
commit 8e1efa101b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -158,11 +158,13 @@ You must either
``` ```
server { server {
listen 80; listen 80;
proxy_pass http://localhost:8080/; location / {
proxy_set_header Host $http_host; proxy_pass http://localhost:8080/;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; 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). * or let openHAB run on port 80 (the entire java process requires elevated privileges).