layne: setup jellyfin
This commit is contained in:
parent
c2fa25642b
commit
d20e036966
3 changed files with 29 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./jellyfin.nix
|
||||
./transmission.nix
|
||||
../../../shared/prometheus-exporters.nix
|
||||
../../../shared/promtail.nix
|
||||
|
|
26
hosts/layne/services/apps/jellyfin.nix
Normal file
26
hosts/layne/services/apps/jellyfin.nix
Normal 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" ];
|
||||
}
|
|
@ -72,6 +72,8 @@ _: {
|
|||
"loki.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";
|
||||
"jellyfin.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
|
||||
"jellyfin.local.adtya.xyz" = "192.168.1.14";
|
||||
};
|
||||
};
|
||||
conditional = {
|
||||
|
|
Loading…
Reference in a new issue