add stirling-pdf to hypervisor

This commit is contained in:
Dmitriy Kholkin 2023-12-30 04:34:49 +03:00
parent 9e2d6793ba
commit 57130d5d7b
5 changed files with 32 additions and 0 deletions

View File

@ -27,6 +27,7 @@ in {
customProfiles.media-stack
# customProfiles.copyparty
customProfiles.seafile
customProfiles.spdf
# customProfiles.cocalc
# customProfiles.neko-browser
customProfiles.openbooks

View File

@ -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"; }

View File

@ -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"

View File

@ -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";

24
profiles/servers/spdf.nix Normal file
View File

@ -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 -"
];
}