2024-09-14 19:36:59 +05:30
|
|
|
_:
|
|
|
|
let
|
|
|
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
|
|
|
in
|
|
|
|
{
|
2024-08-29 22:09:47 +05:30
|
|
|
services = {
|
|
|
|
caddy = {
|
|
|
|
virtualHosts = {
|
|
|
|
"jellyfin.local.adtya.xyz" = {
|
2024-09-14 19:36:59 +05:30
|
|
|
logFormat = logFormat "jellyfin.local.adtya.xyz";
|
2024-08-29 22:09:47 +05:30
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 127.0.0.1:8096
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
"jellyfin.labs.adtya.xyz" = {
|
2024-09-14 19:36:59 +05:30
|
|
|
logFormat = logFormat "jellyfin.labs.adtya.xyz";
|
2024-08-29 22:09:47 +05:30
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 127.0.0.1:8096
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
jellyfin = {
|
|
|
|
enable = true;
|
|
|
|
dataDir = "/mnt/data/Jellyfin";
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.services.jellyfin.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
|
|
|
}
|