feat(tyr): setup paperless ngx.
This commit is contained in:
parent
60fbe35de3
commit
56c4fafa49
6 changed files with 35 additions and 0 deletions
|
|
@ -11,5 +11,6 @@
|
|||
./home-assistant.nix
|
||||
./mosquitto.nix
|
||||
./linkwarden.nix
|
||||
./paperless-ngx.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"''
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
29
modules/servers/tyr/paperless-ngx.nix
Normal file
29
modules/servers/tyr/paperless-ngx.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -40,6 +40,9 @@
|
|||
linkwarden-db = {
|
||||
file = ../../../secrets/linkwarden.age;
|
||||
};
|
||||
paperless-ngx = {
|
||||
file = ../../../secrets/paperless-ngx.age;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue