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
|
@ -24,8 +24,8 @@ in {
|
|||
|
||||
globals.services.forgejo.domain = forgejoDomain;
|
||||
globals.monitoring.http.forgejo = {
|
||||
url = "https://${forgejoDomain}";
|
||||
location = "home";
|
||||
url = "https://${forgejoDomain}/user/login";
|
||||
expectedBodyRegex = "Redlew Git";
|
||||
network = "internet";
|
||||
};
|
||||
|
||||
|
@ -57,6 +57,11 @@ in {
|
|||
zone forgejo 64k;
|
||||
keepalive 2;
|
||||
'';
|
||||
monitoring = {
|
||||
enable = true;
|
||||
path = "/user/login";
|
||||
expectedBodyRegex = "Redlew Git";
|
||||
};
|
||||
};
|
||||
virtualHosts.${forgejoDomain} = {
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue