mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
29 lines
767 B
Nix
29 lines
767 B
Nix
{
|
|
services = {
|
|
paperless = {
|
|
enable = true;
|
|
consumptionDirIsPublic = true;
|
|
settings = {
|
|
PAPERLESS_CONSUMER_IGNORE_PATTERN = [
|
|
".DS_STORE/*"
|
|
"desktop.ini"
|
|
];
|
|
PAPERLESS_OCR_LANGUAGE = "deu+eng+nld";
|
|
PAPERLESS_OCR_USER_ARGS = {
|
|
optimize = 1;
|
|
pdfa_image_compression = "lossless";
|
|
};
|
|
PAPERLESS_URL = "https://documents.liv.town";
|
|
};
|
|
};
|
|
nginx.virtualHosts."documents.liv.town" = {
|
|
forceSSL = true;
|
|
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
|
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:28981";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
}
|