feat(service/paperless: expose via doc.tammena.me

This commit is contained in:
Malte Tammena 2024-01-09 20:08:04 +01:00
parent 21fd040c99
commit 1f3c792c09
2 changed files with 9 additions and 3 deletions

View file

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

View file

@ -57,5 +57,10 @@
port = 9000;
external = true;
};
doc = {
host = "faunus-ater";
port = 28981;
external = true;
};
};
}