Hi,
I was looking for a way to access to my Emby server from outside using https.
I found this thread and this one https://dietpi.com/phpbb/viewtopic.php?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:
$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!