Help request for Reverse proxy setup with HTTPS to build a server for multiple services Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: Help request for Reverse proxy setup with HTTPS to build a server for multiple services

Post by Joulinar »

I don't think it's needed to adopt the configuration from Jellyfin website. I did a test and it was quite simple to reach Jellyfin from outside world

create a host jelly.mydomain.com
forward to my Jellyfin server using it's local network address and port
activated SSL certificate + force SSL
done

picture.PNG

and now Jellyfin is reachable on mobile network

Screenshot_20210207-190925.png
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
LeVraiRoiDHyrule
Posts: 55
Joined: Tue Apr 28, 2020 3:00 pm

Re: Help request for Reverse proxy setup with HTTPS to build a server for multiple services

Post by LeVraiRoiDHyrule »

IT WORKS !!!! Thank you so much for your help and your patience.

Nginx + SSL works perfectly. I'm just having an issue with the certificate for my domain, because I made too much tries while testing. So now let's encrypt doesn't let me request more certificates. According to their rate limits, I will have to wait a week before redeeming a new one. So I made a temporary new domain and I successfully requested a cert for it.

So it works perfectly as the base domain. The last thing that I would like to achieve would be to have jellyfin as a subpath [myddns]/jellyfin, for easier integration with other services.

I tried doing this :
Image

+ I've set up a subpath in the jellyfin settings.

But it doesn't work. Am I doing this correctly ?
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: Help request for Reverse proxy setup with HTTPS to build a server for multiple services

Post by Joulinar »

Hi,

I guess you would need to have a look to the Custom locations tab. On the Details you can't specify it.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
LeVraiRoiDHyrule
Posts: 55
Joined: Tue Apr 28, 2020 3:00 pm

Re: Help request for Reverse proxy setup with HTTPS to build a server for multiple services

Post by LeVraiRoiDHyrule »

Hi,

I asked in the Jellyfin discord server about that, and someone helped me to adapt the configuration given in the docs. I did this by directly editing nginx.conf, without Nginx Proxy Manager. It's probably possible with it too but I didn't find how.

I've installed Nginx from Dietpi-software and removed docker + portainer + nginx proxy manager

Here is the solution :

1. Edit nginx.conf
2. remove server_name_in_redirect string
3. Add the example from https://jellyfin.org/docs/general/networking/nginx.html in the "http" block
4. Replace "$jellyfin" by "localhost"

I then used the Let's Encrypt embedded in DietPi for the certificate.

It's probably what Nginx Proxy Manager is doing in the background but that's how I solved it.

I now have Jellyfin running on a subpath with an SSL certificate.

Thanks a lot for your help, you made me understand so much new things !!!
Have a wonderful day !
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: Help request for Reverse proxy setup with HTTPS to build a server for multiple services

Post by Joulinar »

it was just an idea to use NPM as it is gui based and no need to hack config files. Of Corse it is working as well using Nginx directly ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply