NGinx Reverse Proxy - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: NGinx Reverse Proxy (/t-nginx-reverse-proxy) |
NGinx Reverse Proxy - jelly55 - 2024-10-15 I am using jellyfin server behind a NGinx Reverse Proxy so i can use port 80/443 and a http://URI instead of http://URI:8096 / https://URI:8920. All is working so far but i found this post concerning emby to limit the bandwith for download speed. -> https://emby.media/community/index.php?/topic/57214-nginx-limit-download-speed/ What is nescessary to adapt this to jellyfin? Code: Is it enough to change the path from What is the correct path for the download limits for jellyfin? This help page https://jellyfin.org/docs/general/networking/nginx/ does not help with this purpose ... RE: NGinx Reverse Proxy - foux - 2024-10-15 Why do you want to do it in the reverse proxy? You can set a maximum streaming speed in Jellyfin settings. RE: NGinx Reverse Proxy - jelly55 - 2024-10-15 I want to limit the download speed not the streaming speed Jellyfin allows to download files instead of streaming them. I don't know how to set the correct settings in nginx to limit this. The post from the internet is concerning emnby what is different from jellyfin so i can't use the settings 1:1 for my purpose. RE: NGinx Reverse Proxy - TheDreadPirate - 2024-10-15 https://jellyfin.org/docs/general/networking/nginx/#rate-limit-downloads Literally copy and paste that block into your jellyfin server block in the nginx config. Code: # Downloads limit (inside server block) As long as $jellyfin is also the name of the variable you used. Here it is in a full nginx config, based off mine. Code: server { This line would be placed in /etc/nginx/nginx.conf. It could also be placed in the same config as your jellyfin server, but would be outside of the server block. In my example it would go below the final bracket or above "server {" at the top of the file. Code: # Add this outside of you server block (i.e. http block) RE: NGinx Reverse Proxy - jelly55 - 2024-10-15 Many thanks for your help I will try this tomorrow and give Feedback :smile: Update 16.10.: In the morning i moved my old *.conf for jellyfin (/etc/nginx/conf.d/*) to *.bak and created a fresh one with yours. I adapted the file to my needs (letsencrypt, dhparams, server_name, etc.) I needed an update because in debian bookworm an elderly one is delivered (1.22.*) so e.g. the "hhtp2 on;" directive wasn't recognized. After switching to the stable repository i updated my nginx to 1.26.* and "http2 on" is OK. I had to comment out the line Code: proxy_cache jellyfin; I haven't set this variable / parameter so "jellyfin" is unknwon for (my) nginx. Never the less all other options were set so it is working as far as i could test here. I tested it by using a vivaldi browser in ZorinOS (ubuntu linux 22.04.x) a jellyfin viewer (desktop for linux) as well and plus a fresh Android 15 (Pixel) device. All seems to be working so far. Again i thank you very much for your support |