Dietpi + Emby. Updating Emby and enabling SSL

Guides and tutorials for various stuff. Posted by DietPi users.
Crake
Posts: 2
Joined: Mon Apr 13, 2020 7:01 pm

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by Crake »

Thanks a lot Mate, done and working perfectly
aldopi
Posts: 5
Joined: Sat Aug 29, 2020 1:18 am

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by aldopi »

Hi,

I was looking for a way to access to my Emby server from outside using https.
I found this thread and this one viewtopic.php?f=11&t=7758&start=40.
I wanted first to find a way with HAproxy then I said to myself "why trying this way when there's possibly an other way with lighttpd ?".
Since I've installed nextcloud, I understood that it's using vhost for that.
In /etc/lighttpd/conf-available/ there's a file called: 10-proxy.conf

I've added those lines:

Code: Select all

$HTTP["url"] =~ "^/emby" {
    proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "8096" ) ) )
    proxy.header = ( "upgrade" => "enable" )
}
I can access to my Emby server now from https://mydomain.fr/emby.

I hope that this solution will help someone else.
I need to say I'm new in DietPi world, I have tiny knowledge in Linux.
So, it may not be the most secure way of doing, well, if someone has something to say to improve it, I will be ok!
User avatar
Joulinar
Posts: 2091
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by Joulinar »

that's pretty fine and much easier than HAproxy. Enabling the configuration is usually done by creating a sym link from conf-enabled to conf-available. However, moving 10-proxy.conf to conf-enabled is working same way.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
aldopi
Posts: 5
Joined: Sat Aug 29, 2020 1:18 am

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by aldopi »

My bad I forgot to say that I did

Code: Select all

sudo ln -s ../conf-available/10-proxy.conf /etc/lighttpd/conf-enabled/
and restarted the lighttpd service.
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by MichaIng »

Alternative: lighty-enable-mod proxy
User avatar
Joulinar
Posts: 2091
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by Joulinar »

personally I'm still more in favour of Nginx as revers proxy. On lighttpd I'm always struggling how to do it :roll:
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
trigrhappy
Posts: 10
Joined: Sat Aug 31, 2019 6:38 am

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by trigrhappy »

I don't disagree..... but it sure would be nice if emby automatically imported the necessary certificate format from letsencrypt, or letsencrypt exported the necessary format for emby. Either way would be convenient.

I blame emby for being difficult (since I expect better from paid software).
User avatar
Joulinar
Posts: 2091
Joined: Sat Nov 16, 2019 12:49 am

Re: Dietpi + Emby. Updating Emby and enabling SSL

Post by Joulinar »

well from security point of view, creating a revers proxy might be better option anyway. This way you could reduce number of ports you would need to open towards internet ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply