2017-10-19 13:08:22 +02:00
|
|
|
location __PATH__/ {
|
|
|
|
rewrite ^__PATH__/jsonrpc(.*) /jsonrpc$uri;
|
|
|
|
rewrite ^__PATH__/image/(.*) /image/$uri;
|
|
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
|
|
|
2017-10-16 22:48:13 +02:00
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Scheme $scheme;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
|
|
|
|
|
|
# For kodi
|
|
|
|
# Shouldn't need this when proxy headers are turned on. No idea why it does not work (Settings -> Web interface -> Reverse proxy support)
|
|
|
|
location ~ ^/(image|jsonrpc) {
|
|
|
|
proxy_pass http://127.0.0.1:8080;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2017-09-30 11:56:47 +02:00
|
|
|
}
|