layne: setup jellyfin

This commit is contained in:
Adithya 2024-08-29 22:09:47 +05:30
parent c2fa25642b
commit d20e036966
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 29 additions and 0 deletions

View file

@ -1,5 +1,6 @@
_: { _: {
imports = [ imports = [
./jellyfin.nix
./transmission.nix ./transmission.nix
../../../shared/prometheus-exporters.nix ../../../shared/prometheus-exporters.nix
../../../shared/promtail.nix ../../../shared/promtail.nix

View file

@ -0,0 +1,26 @@
_: {
services = {
caddy = {
virtualHosts = {
"jellyfin.local.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:8096
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
'';
};
"jellyfin.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:8096
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
'';
};
};
};
jellyfin = {
enable = true;
dataDir = "/mnt/data/Jellyfin";
openFirewall = true;
};
};
systemd.services.jellyfin.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}

View file

@ -72,6 +72,8 @@ _: {
"loki.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "loki.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"prometheus.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "prometheus.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14"; "transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
"jellyfin.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
"jellyfin.local.adtya.xyz" = "192.168.1.14";
}; };
}; };
conditional = { conditional = {