add health check

This commit is contained in:
XenGi 2025-12-04 23:24:04 +01:00
parent bd3477cd55
commit 21bd6d4f9f
Signed by: xengi
SSH key fingerprint: SHA256:dM+fLZGsDvyv6kunjE8bGduL24VsCFB4LEOSdmRHdG0

View file

@ -24,41 +24,10 @@ in
quic = true;
kTLS = true;
forceSSL = true;
#useACMEHost = fqdn;
enableACME = true;
#listen = [
# {
# addr = "0.0.0.0";
# port = 443;
# ssl = true;
# }
# {
# addr = "[::]";
# port = 443;
# ssl = true;
# }
# {
# addr = "0.0.0.0";
# port = 8448;
# ssl = true;
# }
# {
# addr = "[::]";
# port = 8448;
# ssl = true;
# }
#];
locations = {
#"/.well-known/acme-challenge".root = config.security.acme.defaults.webroot;
"/".return = "418 \"I'm a Teapot!\"";
"= /.well-known/matrix/client" = {
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.berlin.ccc.de\"}}'";
extraConfig = ''
default_type application/json;
add_header Access-Control-Allow-Origin "*";
'';
};
"~ ^(/_matrix|/_synapse/client)" = {
"~ ^(/_matrix|/_synapse/client|/health)" = {
recommendedProxySettings = true;
proxyPass = "http://[::1]:8008";
extraConfig = ''
@ -70,8 +39,4 @@ in
};
};
};
#security.acme.certs."${fqdn}" = {
# reloadServices = [ "nginx" ];
#};
}