1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

fix: fix monitoring endpoints for new services

This commit is contained in:
oddlama 2025-05-18 21:05:51 +02:00
parent 3c38eaf072
commit 46f0db2d60
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 15 additions and 19 deletions

View file

@ -14,22 +14,17 @@ let
s3Domain = "s3.photos.${globals.domains.me}";
proxyConfig = remoteAddr: nginxExtraConfig: {
upstreams.ente = {
servers."${remoteAddr}:80" = { };
extraConfig = ''
zone ente 64k;
keepalive 20;
'';
monitoring.enable = true;
};
upstreams.museum = {
servers."${remoteAddr}:8080" = { };
extraConfig = ''
zone museum 64k;
keepalive 20;
'';
monitoring.enable = true;
monitoring = {
enable = true;
path = "/ping";
expectedStatus = 200;
};
};
upstreams.minio = {
@ -38,7 +33,11 @@ let
zone minio 64k;
keepalive 20;
'';
monitoring.enable = true;
monitoring = {
enable = true;
path = "/minio/health/live";
expectedStatus = 200;
};
};
virtualHosts =
@ -81,7 +80,6 @@ in
wireguard.proxy-sentinel = {
client.via = "sentinel";
firewallRuleForNode.sentinel.allowedTCPPorts = [
80
8080
9000
];
@ -90,7 +88,6 @@ in
wireguard.proxy-home = {
client.via = "ward";
firewallRuleForNode.ward-web-proxy.allowedTCPPorts = [
80
8080
9000
];