Jellyfin and Reverse Proxy

Jellyfin is the Free Software Media System that puts you in control of managing and streaming your media. There are no strings attached, no premium licenses or features, and no hidden agendas.

Moderator: Lillian.W@AST

hertie
Posts: 24
youtube meble na wymiar Warszawa
Joined: Mon Apr 13, 2020 5:08 am

Re: Jellyfin and Reverse Proxy

Post by hertie »

well, of course I saved changes before copying (using Editor). I tried again and it still shows the *. Not sure what I am doing wrong. Do I need to use a different editor?

Currently the Reverse Proxy Settings in ADM give me an error when I try to open it, saying the settings file is missing.
ilike2burnthing
Posts: 380
Joined: Thu Apr 09, 2020 8:01 pm

Re: Jellyfin and Reverse Proxy

Post by ilike2burnthing »

Just realised you're editing:

Code: Select all

/volume0/usr/builtin/etc/reverse_proxy/proxy.json
Revert the changes you made to it.

Go to:

Code: Select all

/volume0/usr/builtin/etc/nginx_reverse_proxy/sites-enabled
open the relevant .conf file, and make the relevant changes there.
hertie
Posts: 24
Joined: Mon Apr 13, 2020 5:08 am

Re: Jellyfin and Reverse Proxy

Post by hertie »

Seems like i am missing basics here. I cant cd to /sites-enabled. Cd to /nginx_reverse_proxy is possible and with ls I see sites-enabled/ (written in blue if that makes a difference). I am using root user.
ilike2burnthing
Posts: 380
Joined: Thu Apr 09, 2020 8:01 pm

Re: Jellyfin and Reverse Proxy

Post by ilike2burnthing »

Odd...

What are you using to access it? I'm on Windows, so the easiest thing for me is WinSCP.
hertie
Posts: 24
Joined: Mon Apr 13, 2020 5:08 am

Re: Jellyfin and Reverse Proxy

Post by hertie »

I was using PuTTY. But I tried WinSCP based on your hint. Looks much better btw.

Don't know why, but it works with WinSCP. I can access the directory and can open the conf file. I will try a bit now.
hertie
Posts: 24
Joined: Mon Apr 13, 2020 5:08 am

Re: Jellyfin and Reverse Proxy

Post by hertie »

Based on https://jellyfin.org/docs/general/netwo ... rgjellyfin I edited the conf file in

Code: Select all

/volume0/usr/builtin/etc/nginx_reverse_proxy/sites-enabled
It looks like this now (I removed referals to Portiner etc)

Code: Select all

	map $http_upgrade $connection_upgrade {
		default upgrade;
		''      close;
	}
server {
	listen 192.168.1.123:99;
	server_name MYDOMAIN.myasustor.com;
	ssl on;
	ssl_certificate		/usr/builtin/etc/certificate/ssl/2ba266f2-738e-47db-dba6-a49b81c65437/ssl.crt;
	ssl_certificate_key	/usr/builtin/etc/certificate/ssl/2ba266f2-738e-47db-dba6-a49b81c65437/ssl.key;
		
		location /jellyfin/ {
			proxy_pass http://192.168.1.123:8096/jellyfin/web/index.html;

        proxy_pass_request_headers on;

        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-Host $http_host;

        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;}
}
Unfortunatly, that does not improve the situation. By the way, by accident I found out that changing something in the reverse proxy settings in ADM resets the conf file.
ilike2burnthing
Posts: 380
Joined: Thu Apr 09, 2020 8:01 pm

Re: Jellyfin and Reverse Proxy

Post by ilike2burnthing »

Try changing your reverse proxy path in ADM from /jellyfin/web/index.html to just /jellyfin/ and try accessing Jellyfin again.

If that doesn't work, try making the changes to the .conf file again (be careful of your line indentation, not sure if it makes a difference here, but you're a space short).

If it still doesn't work, it becomes an oh so fun game of trial and error, removing and re-adding lines.
hertie
Posts: 24
Joined: Mon Apr 13, 2020 5:08 am

Re: Jellyfin and Reverse Proxy

Post by hertie »

I adjusted line indentation and deleted the web/index.html subpath. The subpath had been added automatically by the reverse proxy when testing the connection successfully in ADM much earlier. But in real life it still does not work.

I will use trial and error now.

From the Jellyfin documentation I totally neglected the folling code lines so far

Code: Select all

    # use a variable to store the upstream proxy
    # in this example we are using a hostname which is resolved via DNS
    # (if you aren't using DNS remove the resolver line and change the variable to point to an IP address e.g `set $jellyfin 127.0.0.1`)
    set $jellyfin jellyfin;
    resolver 127.0.0.1 valid=30;

    # Uncomment and create directory to also host static content
    #root /srv/http/media;
    index index.html;

    location / {
        try_files $uri $uri/ =404;


    # Jellyfin
    location /jellyfin {
        return 302 $scheme://$host/jellyfin/;
    }
Are they related to the problem?
ilike2burnthing
Posts: 380
Joined: Thu Apr 09, 2020 8:01 pm

Re: Jellyfin and Reverse Proxy

Post by ilike2burnthing »

index index.html
looks like the only one which might be of use
Post Reply

Return to “Jellyfin”