Add Jellyfin's Nginx config on camelot

This commit is contained in:
Victor Mignot 2023-11-24 18:45:27 +01:00
parent cbbba40a01
commit ac727a1e1d
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -1,6 +1,19 @@
{ extraInfo, ... }:
{
services.jellyfin.enable = true;
networking.firewall.allowedTCPPorts = [
8096
];
services.nginx.virtualHosts.${extraInfo.jellyfinURI} = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://localhost:8096";
};
"/socket" = {
proxyPass = "http://localhost:8096";
proxyWebsockets = true;
};
};
};
}