2024-02-28, 03:42 PM
On top of your /etc/nginx/conf.d/jellyfin.conf you define a redirect from http (Port 80) to https (Port 443). That's ok and should be done.
server {
listen 80;
listen [::]:80;
server_name jellyfin.domain.tld;
# Uncomment to redirect HTTP to HTTPS
return 301 https://$host$request_uri;
}
In your setup for https, however, you specify that a call of the document root should be redirected to http - this leads to an endless loop:
location = / {
return 302 http://$host/web/;
#return 302 https://$host/web/;
}
And that's working in my configuration for secure connections:
location = / {
return 302 https://$host/web/;
}
Regards
Achim
server {
listen 80;
listen [::]:80;
server_name jellyfin.domain.tld;
# Uncomment to redirect HTTP to HTTPS
return 301 https://$host$request_uri;
}
In your setup for https, however, you specify that a call of the document root should be redirected to http - this leads to an endless loop:
location = / {
return 302 http://$host/web/;
#return 302 https://$host/web/;
}
And that's working in my configuration for secure connections:
location = / {
return 302 https://$host/web/;
}
Regards
Achim
Actually Jellyfin is running with Ubuntu 22.04 on a small Mini-ITX equipped self-built NAS with 8 GB memory. I use this box mainly as a backup target and media center for my music archive – and of course as playground for Linux.