diff --git a/hosts/faunus-ater.nix b/hosts/faunus-ater.nix index 1fe8a8c..d460fd6 100644 --- a/hosts/faunus-ater.nix +++ b/hosts/faunus-ater.nix @@ -269,7 +269,8 @@ in { # === PAPERLESS service, save me! === services.paperless = { enable = true; - address = "[::1]"; + address = "0.0.0.0"; + port = config.state.services.doc.port; passwordFile = sopsPath "paperless-admin-password"; dataDir = "/data/dirty/paperless"; extraConfig = { @@ -278,12 +279,12 @@ in { PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS = true; PAPERLESS_FILENAME_FORMAT = "{created_year}/{correspondent}/{created_year}-{created_month}-{created_day}-{document_type}-{title}-{tag_list}"; PAPERLESS_OCR_LANGUAGE = "deu"; - PAPERLESS_URL = "https://doc.home"; + PAPERLESS_URL = "https://doc.tammena.me"; }; }; services.nginx.virtualHosts."doc.home" = mkVirtHost "doc-home" { locations."/" = { - proxyPass = "http://[::1]:${builtins.toString config.services.paperless.port}"; + proxyPass = "http://localhost:${builtins.toString config.services.paperless.port}"; proxyWebsockets = true; }; }; diff --git a/state.nix b/state.nix index cff9cbf..d7dd20d 100644 --- a/state.nix +++ b/state.nix @@ -57,5 +57,10 @@ port = 9000; external = true; }; + doc = { + host = "faunus-ater"; + port = 28981; + external = true; + }; }; }