add requred proxy headers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-02-02 01:24:11 +01:00
parent 5b9e42bb05
commit 9d633b9959

View File

@ -29,7 +29,16 @@ server {
location / {
proxy_pass http://backend_jellyfin;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#Next three lines allow websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
ssl_certificate /etc/pki/tls/certs/{{ jellyfin_nginx_tls_cert_file }};