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
|
./home-assistant.nix
|
||||||
./mosquitto.nix
|
./mosquitto.nix
|
||||||
./linkwarden.nix
|
./linkwarden.nix
|
||||||
|
./paperless-ngx.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@
|
||||||
''"assistant.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
''"assistant.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||||
''"ddns.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"''
|
''"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 = {
|
linkwarden-db = {
|
||||||
file = ../../../secrets/linkwarden.age;
|
file = ../../../secrets/linkwarden.age;
|
||||||
};
|
};
|
||||||
|
paperless-ngx = {
|
||||||
|
file = ../../../secrets/paperless-ngx.age;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
secrets/paperless-ngx.age
Normal file
BIN
secrets/paperless-ngx.age
Normal file
Binary file not shown.
|
|
@ -45,4 +45,5 @@ in {
|
||||||
"ddns.age".publicKeys = systems ++ users;
|
"ddns.age".publicKeys = systems ++ users;
|
||||||
"linkwarden.age".publicKeys = systems ++ users;
|
"linkwarden.age".publicKeys = systems ++ users;
|
||||||
"linkwarden-db.age".publicKeys = systems ++ users;
|
"linkwarden-db.age".publicKeys = systems ++ users;
|
||||||
|
"paperless-ngx.age".publicKeys = systems ++ users;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue