forked from mirrors_public/oddlama_nix-config
feat(monitoring): remove location, add nginx upstream monitoring option
This commit is contained in:
parent
2024c3bfd5
commit
18b2002c27
26 changed files with 352 additions and 218 deletions
|
@ -27,7 +27,7 @@ in {
|
|||
globals.services.paperless.domain = paperlessDomain;
|
||||
globals.monitoring.http.paperless = {
|
||||
url = "https://${paperlessDomain}";
|
||||
location = "home";
|
||||
expectedBodyRegex = "Paperless-ngx";
|
||||
network = "internet";
|
||||
};
|
||||
|
||||
|
@ -39,6 +39,10 @@ in {
|
|||
zone paperless 64k;
|
||||
keepalive 2;
|
||||
'';
|
||||
# direct upstream monitoring doesn't work because
|
||||
# paperless allowed hosts fails for ip-based queries.
|
||||
# But that's fine, we just monitor it via the domain above anyway.
|
||||
#monitoring.enable = true;
|
||||
};
|
||||
virtualHosts.${paperlessDomain} = {
|
||||
forceSSL = true;
|
||||
|
@ -63,6 +67,10 @@ in {
|
|||
zone paperless 64k;
|
||||
keepalive 2;
|
||||
'';
|
||||
monitoring = {
|
||||
enable = true;
|
||||
expectedBodyRegex = "Paperless-ngx";
|
||||
};
|
||||
};
|
||||
virtualHosts.${paperlessDomain} = {
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue