2023-12-08, 09:15 PM
I'm found something similar.
Internal to my network, Jellyfin runs on fin.local.domain:8096, that works fine. Downloaded and installed yesterday, using standard "debuntu" method.
Externally I want it to run as https://buildingname.external.domain:4114/
I'm no stranger to networking, and I have a valid (issued today) Let's Encrypt cert (using the DNS challenge method, due to not-standard port).
Nginx reverse proxy configured to listen on port 4114 and forward traffic to localhost:8096
Main building router forwards buildingname.external.domain:4114 to fin.local.domain:4114
On my Android 11 device I have Jellyfin 2.5.3 installed today from F-Droid.
I tried a couple of variations of
"Connection could not be established.
Please check the hostname and your network connection."
The culprit I found was the example config has buried in the middle this redirection:
If you simply swap the '#' to flip which line is commented out, it still doesn't work because you need to add the non-standard port to the redirect:
With that it was fixed.
Internal to my network, Jellyfin runs on fin.local.domain:8096, that works fine. Downloaded and installed yesterday, using standard "debuntu" method.
Externally I want it to run as https://buildingname.external.domain:4114/
I'm no stranger to networking, and I have a valid (issued today) Let's Encrypt cert (using the DNS challenge method, due to not-standard port).
Nginx reverse proxy configured to listen on port 4114 and forward traffic to localhost:8096
Main building router forwards buildingname.external.domain:4114 to fin.local.domain:4114
curl https://buildingname.external.domain:4114/
works as expected and validates the cert.On my Android 11 device I have Jellyfin 2.5.3 installed today from F-Droid.
I tried a couple of variations of
buildingname.external.domain:4114
and https://buildingname.external.domain:4114
in the app but I kept getting"Connection could not be established.
Please check the hostname and your network connection."
The culprit I found was the example config has buried in the middle this redirection:
Code:
location = / {
return 302 http://$host/web/;
#return 302 https://$host/web/;
}
If you simply swap the '#' to flip which line is commented out, it still doesn't work because you need to add the non-standard port to the redirect:
Code:
return 302 https://$host:4114/web/;
With that it was fixed.