32 lines
715 B
Nix
32 lines
715 B
Nix
_:
|
|
let
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
|
in
|
|
{
|
|
services = {
|
|
caddy = {
|
|
virtualHosts = {
|
|
"jellyfin.local.adtya.xyz" = {
|
|
inherit logFormat;
|
|
extraConfig = ''
|
|
reverse_proxy 127.0.0.1:8096
|
|
'';
|
|
};
|
|
"jellyfin.labs.adtya.xyz" = {
|
|
inherit logFormat;
|
|
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" ];
|
|
}
|