feat(tyr): setup paperless ngx.

This commit is contained in:
CronyAkatsuki 2026-01-11 17:44:58 +01:00
parent 60fbe35de3
commit 56c4fafa49
6 changed files with 35 additions and 0 deletions

View file

@ -11,5 +11,6 @@
./home-assistant.nix
./mosquitto.nix
./linkwarden.nix
./paperless-ngx.nix
];
}

View file

@ -87,6 +87,7 @@
''"assistant.home.cronyakatsuki.xyz IN A 192.168.0.5"''
''"ddns.home.cronyakatsuki.xyz IN A 192.168.0.5"''
''"linkwarden.home.cronyakatsuki.xyz IN A 192.168.0.5"''
''"paperless.home.cronyakatsuki.xyz IN A 192.168.0.5"''
];
};
};

View file

@ -0,0 +1,29 @@
{config, ...}: {
services.paperless = {
enable = true;
passwordFile = config.age.secrets.paperless-ngx.path;
domain = "paperless.home.cronyakatsuki.xyz";
settings = {
PAPERLESS_OCR_LANGUAGE = "hrv+eng";
PAPERLESS_ADMIN_USER = "crony";
PAPERLESS_URL = "https://paperless.home.cronyakatsuki.xyz";
};
};
services.traefik.dynamicConfigOptions.http = {
services.paperless.loadBalancer.servers = [
{
url = "http://localhost:28981";
}
];
routers.paperless = {
rule = "Host(`paperless.home.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "paperless";
entrypoints = "websecure";
};
};
}

View file

@ -40,6 +40,9 @@
linkwarden-db = {
file = ../../../secrets/linkwarden.age;
};
paperless-ngx = {
file = ../../../secrets/paperless-ngx.age;
};
};
};
}