feat(service/paperless: expose via doc.tammena.me
This commit is contained in:
parent
21fd040c99
commit
1f3c792c09
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue