From 23e14b606548c204891b4f7a7c3f58bdacd852a1 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 11 Jan 2021 08:48:21 +0100 Subject: [PATCH] Update NGINX conf for proxy bufferring (#50) * Update NGINX conf for proxy bufferring * Bump package version * Fix linter warning --- conf/nginx.conf | 18 ++++++++++++++++++ manifest.json | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index b1f2ab0..0e7dfc1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,6 +6,7 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } + # Proxy main Jellyfin traffic proxy_pass http://127.0.0.1:__PORT____PATH__/; proxy_pass_request_headers on; proxy_set_header Host $host; @@ -16,6 +17,23 @@ location __PATH__/ { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; + # Disable buffering when the nginx proxy gets very resource heavy upon streaming + proxy_buffering off; + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + +location __PATH__/socket { + # Proxy Jellyfin Websockets traffic + proxy_pass http://127.0.0.1:__PORT____PATH__/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + 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 X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Protocol $scheme; + proxy_set_header X-Forwarded-Host $http_host; +} diff --git a/manifest.json b/manifest.json index 43eff57..53a5b7f 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Media System that manage and stream your media.", "fr": "Système multimédia qui gère et diffuse vos médias." }, - "version": "10.6.4~ynh2", + "version": "10.6.4~ynh3", "url": "https://github.com/jellyfin/jellyfin", "license": "GPL-2.0-only", "maintainer": {