diff --git a/sys/platforms/vps/srv/default.nix b/sys/platforms/vps/srv/default.nix index 8c6abcf..f4cb031 100644 --- a/sys/platforms/vps/srv/default.nix +++ b/sys/platforms/vps/srv/default.nix @@ -12,12 +12,10 @@ with lib; { ./forgejo.nix ./vaultwarden.nix ./msmtp.nix - ./paperless.nix ./trilium.nix ./syncthing.nix ./calibre-web.nix ./immich.nix - ./wiki-js.nix ./mealie.nix ]; } diff --git a/sys/platforms/vps/srv/paperless.nix b/sys/platforms/vps/srv/paperless.nix deleted file mode 100644 index cb62bd9..0000000 --- a/sys/platforms/vps/srv/paperless.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - lib, - pkgs, - ... -}: -with lib; { - services = { - nginx = { - virtualHosts."docs.posixlycorrect.com" = { - enableACME = true; - forceSSL = true; - extraConfig = '' - proxy_headers_hash_max_size 512; - proxy_headers_hash_bucket_size 128; - ''; - locations."/" = { - proxyPass = "http://127.0.0.1:28981"; - }; - }; - }; - - paperless = { - enable = true; - user = "paperless"; - passwordFile = "/var/trust/paperless/passwordFile"; - openMPThreadingWorkaround = true; # see https://github.com/NixOS/nixpkgs/issues/240591 - address = "127.0.0.1"; - port = 28981; - settings = { - PAPERLESS_URL = "docs.posixlycorrect.com"; - PAPERLESS_OCR_LANGUAGE = "eng+spa"; - PAPERLESS_APP_TITLE = "posixlycorrect"; - PAPERLESS_OCR_USER_ARGS = { - "invalidate_digital_signatures" = true; - }; - }; - }; - }; -} diff --git a/sys/platforms/vps/srv/wiki-js.nix b/sys/platforms/vps/srv/wiki-js.nix deleted file mode 100644 index f852db5..0000000 --- a/sys/platforms/vps/srv/wiki-js.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ - lib, - pkgs, - ... -}: -with lib; { - systemd.services.wiki-js = { - requires = ["postgresql.service"]; - after = ["postgresql.service"]; - }; - - services = { - nginx = { - virtualHosts."wjs.posixlycorrect.com" = { - enableACME = true; - forceSSL = true; - extraConfig = '' - proxy_headers_hash_max_size 512; - proxy_headers_hash_bucket_size 128; - ''; - locations."/" = { - proxyPass = "http://127.0.0.1:3000"; - }; - }; - }; - - wiki-js = { - enable = true; - environmentFile = "/var/trust/wiki-js/env.txt"; - settings = { - bindIP = "127.0.0.1"; - port = 3000; - db = { - db = "wiki-js"; - user = "wiki-js"; - type = "postgres"; - host = "/run/postgresql"; - }; - }; - }; - - postgresql = { - enable = true; - ensureDatabases = ["wiki-js"]; - ensureUsers = [ - { - name = "wiki-js"; - ensureDBOwnership = true; - } - ]; - }; - }; -}