mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 14:50:40 +02:00
fix: fix monitoring endpoints for new services
This commit is contained in:
parent
3c38eaf072
commit
46f0db2d60
2 changed files with 15 additions and 19 deletions
|
@ -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
|
||||
];
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
mealieDomain = "mealie.${globals.domains.personal}";
|
||||
mealieDomain = "mealie.${globals.domains.me}";
|
||||
in
|
||||
{
|
||||
wireguard.proxy-home = {
|
||||
|
@ -22,9 +22,8 @@ in
|
|||
globals.services.mealie.domain = mealieDomain;
|
||||
globals.monitoring.http.mealie = {
|
||||
url = "https://${mealieDomain}";
|
||||
# FIXME: todooooooooooo
|
||||
expectedBodyRegex = "TODO";
|
||||
network = "internet";
|
||||
expectedBodyRegex = ''<title>Mealie<\title>'';
|
||||
network = "home-lan.vlans.services";
|
||||
};
|
||||
|
||||
environment.persistence."/persist".directories = [
|
||||
|
@ -62,8 +61,8 @@ in
|
|||
'';
|
||||
monitoring = {
|
||||
enable = true;
|
||||
# FIXME: todooooooooooo
|
||||
expectedBodyRegex = "TODO";
|
||||
expectedStatus = 200;
|
||||
expectedBodyRegex = ''<title>Mealie<\title>'';
|
||||
};
|
||||
};
|
||||
virtualHosts.${mealieDomain} = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue