add metrics

This commit is contained in:
XenGi 2025-11-30 16:09:05 +01:00
parent 79c5c57629
commit 1612f5e511
Signed by: xengi
SSH key fingerprint: SHA256:dM+fLZGsDvyv6kunjE8bGduL24VsCFB4LEOSdmRHdG0
6 changed files with 227 additions and 60 deletions

View file

@ -20,9 +20,9 @@ in
kTLS = true;
forceSSL = true;
useACMEHost = fqdn;
#enableACME = true;
locations = {
"/.well-known/matrix/client" = {
"/".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;
@ -31,25 +31,16 @@ in
};
"~ ^(/_matrix|/_synapse/client)" {
recommendedProxySettings = true;
proxyPass = "unix:/run/matrix-synapse.sock";
proxyPass = "http://[::1]:8008";
extraConfig = ''
client_max_body_size 64M;
proxy_set_header X-Request-ID $request_id;
proxy_http_version 1.1;
'';
};
"/" = {
return = "418 \"I'm a Teapot!\"";
};
extraConfig = ''
client_max_body_size 64M;
'';
};
extraConfig = ''
proxy_http_version 1.1;
'';
};
};
security.acme.certs."${fqdn}" = {
reloadServices = ["nginx"];
};
security.acme.certs."${fqdn}".reloadServices = ["nginx"];
}