diff --git a/modules/system/homelab/media.nix b/modules/system/homelab/media.nix index 2393ccf..0c7a17f 100644 --- a/modules/system/homelab/media.nix +++ b/modules/system/homelab/media.nix @@ -5,6 +5,7 @@ services = { jellyfin = { enable = true; + dataDir = "/mnt/data/apps/jellyfin"; hardwareAcceleration = { enable = true; device = "/dev/dri/renderD128"; @@ -43,4 +44,4 @@ # port = 8191; # }; }; -} \ No newline at end of file +} diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index 8ca2d5f..ee3930e 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -1,4 +1,5 @@ { pkgs, homelab, lib, ... }: let + htpasswd = "/mnt/data/apps/nginx/htpasswd"; exta-conf = '' # proxy_set_header X-Auth-User $remote_user; proxy_read_timeout 600s; @@ -60,7 +61,7 @@ in { locations."/" = { proxyPass = cfg.dest; proxyWebsockets = true; - basicAuthFile = if cfg.auth then "/var/lib/nginx/.htpasswd" else null; + basicAuthFile = if cfg.auth then htpasswd else null; extraConfig = exta-conf; }; }) homelab.proxy.hosts; @@ -68,7 +69,7 @@ in { traefik = { enable = true; dynamicConfigOptions = { - http.middlewares.auth.basicAuth.usersFile = "/var/lib/nginx/.htpasswd"; + http.middlewares.auth.basicAuth.usersFile = htpasswd; }; staticConfigOptions = { entryPoints = {