From: k0rtina Date: Mon, 12 Nov 2018 08:46:27 +0000 (+1100) Subject: updated nginx example X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57bd906806c426045cc2a9ed746e9be5e6baee07;p=thirdparty%2Ftvheadend.git updated nginx example 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 --- diff --git a/docs/markdown/faqs.md b/docs/markdown/faqs.md index 8b7394985..698bc1dfe 100644 --- a/docs/markdown/faqs.md +++ b/docs/markdown/faqs.md @@ -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):