feat: add jellyfin

This commit is contained in:
Ahwx 2024-12-19 18:22:52 +01:00
parent 0d82e2f2aa
commit b17234ffe1

View file

@ -0,0 +1,26 @@
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.jellyfin
pkgs.jellyfin-web
pkgs.jellyfin-ffmpeg
];
services = {
jellyfin = {
enable = true;
};
nginx.virtualHosts = {
"stream.liv.town" = {
forceSSL = true;
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
locations."/" = {
proxyPass = "http://localhost:8096";
proxyWebsockets = true;
};
};
};
};
}