configuration.nix/hosts/layne/services/apps/jellyfin.nix
2024-11-17 14:06:46 +05:30

26 lines
586 B
Nix

_: {
services = {
caddy = {
virtualHosts = {
"jellyfin.local.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:8096
'';
};
"jellyfin.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:8096
'';
};
};
};
jellyfin = {
enable = true;
user = "mediaserver";
group = "mediaserver";
dataDir = "/mnt/data/Jellyfin";
openFirewall = true;
};
};
systemd.services.jellyfin.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}