diff --git a/machines/Home-Hypervisor/default.nix b/machines/Home-Hypervisor/default.nix index 076b94d..5f5a525 100644 --- a/machines/Home-Hypervisor/default.nix +++ b/machines/Home-Hypervisor/default.nix @@ -27,6 +27,7 @@ in { customProfiles.media-stack # customProfiles.copyparty customProfiles.seafile + customProfiles.spdf # customProfiles.cocalc # customProfiles.neko-browser customProfiles.openbooks diff --git a/machines/Home-Hypervisor/dns-headscale.nix b/machines/Home-Hypervisor/dns-headscale.nix index 3d96571..05e4503 100644 --- a/machines/Home-Hypervisor/dns-headscale.nix +++ b/machines/Home-Hypervisor/dns-headscale.nix @@ -30,6 +30,7 @@ { name = "nzbhydra.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; } { name = "openbooks.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; } { name = "organizr.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; } + { name = "pdf.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; } { name = "prowlarr.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; } { name = "qbit.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; } { name = "radarr.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; } @@ -75,6 +76,7 @@ { name = "nzbhydra.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; } { name = "openbooks.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; } { name = "organizr.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; } + { name = "pdf.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; } { name = "prowlarr.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; } { name = "qbit.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; } { name = "radarr.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; } diff --git a/machines/Home-Hypervisor/dns-mapping.nix b/machines/Home-Hypervisor/dns-mapping.nix index a6f218d..e878cee 100644 --- a/machines/Home-Hypervisor/dns-mapping.nix +++ b/machines/Home-Hypervisor/dns-mapping.nix @@ -28,6 +28,7 @@ "/nzbhydra.ataraxiadev.com/192.168.0.10" "/openbooks.ataraxiadev.com/192.168.0.10" "/organizr.ataraxiadev.com/192.168.0.10" + "/pdf.ataraxiadev.com/192.168.0.10" "/prowlarr.ataraxiadev.com/192.168.0.10" "/qbit.ataraxiadev.com/192.168.0.10" "/radarr.ataraxiadev.com/192.168.0.10" diff --git a/profiles/servers/nginx.nix b/profiles/servers/nginx.nix index 322dda5..7bc54e1 100644 --- a/profiles/servers/nginx.nix +++ b/profiles/servers/nginx.nix @@ -89,6 +89,7 @@ in { "cal.ataraxiadev.com" "wg.ataraxiadev.com" "wiki.ataraxiadev.com" + "pdf.ataraxiadev.com" "matrix.ataraxiadev.com" "dimension.ataraxiadev.com" @@ -296,6 +297,9 @@ in { "tools.ataraxiadev.com" = default // authentik { proxyPass = "http://127.0.0.1:8070"; }; + "pdf.ataraxiadev.com" = default // authentik { + proxyPass = "http://127.0.0.1:8071"; + }; "medusa.ataraxiadev.com" = { locations."/" = { proxyPass = "http://127.0.0.1:8180"; diff --git a/profiles/servers/spdf.nix b/profiles/servers/spdf.nix new file mode 100644 index 0000000..beaaa80 --- /dev/null +++ b/profiles/servers/spdf.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: let + nas-path = "/media/nas/media-stack"; +in { + virtualisation.oci-containers.containers.spdf = { + autoStart = true; + image = "docker.io/frooodle/s-pdf:0.17.2"; + environment = { + PUID = "1000"; + PGID = "100"; + UMASK = "022"; + SECURITY_ENABLE_LOGIN = "false"; + SECURITY_CSRF_DISABLED = "false"; + SYSTEM_DEFAULT_LOCALE = "ru-RU"; + METRICS_ENABLED = "false"; + }; + ports = [ "127.0.0.1:8071:8080/tcp" ]; + volumes = [ "${nas-path}/configs/spdf/configs:/configs" ]; + }; + + systemd.tmpfiles.rules = [ + "d ${nas-path}/configs/spdf 0755 1000 100 -" + "d ${nas-path}/configs/spdf/configs 0755 1000 100 -" + ]; +} \ No newline at end of file