diff --git a/services/paperless.nix b/services/paperless.nix index 1204b25..fdc2424 100644 --- a/services/paperless.nix +++ b/services/paperless.nix @@ -8,25 +8,25 @@ in { group = config.services.paperless.user; }; - /* services.paperless = { - enable = true; - inherit port; - passwordFile = config.age.secrets.paperless.path; - extraConfig = { - PAPERLESS_ADMIN_USER = "felschr"; - PAPERLESS_OCR_LANGUAGE = "deu+eng"; - }; - }; + services.paperless = { + enable = true; + inherit port; + passwordFile = config.age.secrets.paperless.path; + extraConfig = { + PAPERLESS_ADMIN_USER = "felschr"; + PAPERLESS_OCR_LANGUAGE = "deu+eng"; + }; + }; + + services.nginx = { + virtualHosts."paperless.felschr.com" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://localhost:${toString port}"; + proxyWebsockets = true; + }; + }; + }; - services.nginx = { - virtualHosts."paperless.felschr.com" = { - enableACME = true; - forceSSL = true; - locations."/" = { - proxyPass = "http://localhost:${toString port}"; - proxyWebsockets = true; - }; - }; - }; - */ }