]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
updated nginx example
authork0rtina <mbonny@gmail.com>
Mon, 12 Nov 2018 08:46:27 +0000 (19:46 +1100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Nov 2018 12:29:10 +0000 (13:29 +0100)
the tvheadend no longer seems to like the = sign in the option
--http_root /my/tvh/server (working)
--http_root=/my/tvh/server (doesnt work)
nginx config updated to include the Connection "upgrade" to deal with the WS: /comet/ws traffic

docs/markdown/faqs.md

index 8b7394985d4a78f4bd079338eda6007e9ea43d8e..698bc1dfe43f7cffa9672ffaa55bf6ec6149e3e4 100644 (file)
@@ -36,15 +36,17 @@ path prefix). The proxy server *MUST* pass this webroot path in the HTTP
 request, otherwise an access to the Tvheadend server will end with
 the endless redirect loop.
 
-Example for nginx (--http_root=/my/tvh/server):
+Example for nginx (--http_root /my/tvh/server):
 
 ```
-location /my/tvh/server {
-  proxy_pass http://1.1.1.1:9981;
-  proxy_set_header Host $host;
-  proxy_set_header X-Real-IP $remote_addr;
-  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-}
+       location /my/tvh/server {
+               proxy_pass http://1.1.1.1:9981;
+               proxy_set_header Host $host;
+               proxy_set_header X-Real-IP $remote_addr;
+               proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+               proxy_set_header Upgrade $http_upgrade;
+               proxy_set_header Connection "upgrade";
+       }
 ```
 
 Example for apache (--http_root=/my/tvh/server):