feat: set up agenix secrets management
This commit is contained in:
parent
cc6226d335
commit
5f329f550e
32 changed files with 279 additions and 44 deletions
|
@ -2,24 +2,25 @@
|
|||
|
||||
let port = 28981;
|
||||
in {
|
||||
services.paperless-ng = {
|
||||
enable = true;
|
||||
inherit port;
|
||||
passwordFile = "/etc/nixos/secrets/paperless";
|
||||
extraConfig = {
|
||||
PAPERLESS_ADMIN_USER = "felschr";
|
||||
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||
};
|
||||
};
|
||||
/* services.paperless-ng = {
|
||||
enable = true;
|
||||
inherit port;
|
||||
passwordFile = config.age.secrets.paperless.path;
|
||||
extraConfig = {
|
||||
PAPERLESS_ADMIN_USER = "felschr";
|
||||
PAPERLESS_OCR_LANGUAGE = "deu+eng";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."paperless.felschr.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
virtualHosts."paperless.felschr.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue