Ajout export metrics

neo-oidc
pigeonmoelleux 2025-06-28 14:21:21 +02:00
parent ebfb206fc1
commit 00c22e3422
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
1 changed files with 27 additions and 1 deletions

View File

@ -33,6 +33,7 @@
443 443
8008 8008
8448 8448
9009
]; ];
}; };
@ -47,6 +48,7 @@
server_name = "crans.org"; server_name = "crans.org";
report_stats = false; report_stats = false;
enable_metrics = true;
public_baseurl = "https://matrix.crans.org/"; public_baseurl = "https://matrix.crans.org/";
@ -71,6 +73,22 @@
} }
]; ];
} }
{
port = 9009;
bind_addresses = [
"::1"
"127.0.0.1"
];
type = "metrics";
x_forwarded = true;
tls = false;
resources = [
{
names = [ "metrics" ];
compress = false;
}
];
}
]; ];
database = { database = {
@ -125,7 +143,6 @@
extras = [ extras = [
"oidc" "oidc"
"postgres" "postgres"
"sentry"
"systemd" "systemd"
"url-preview" "url-preview"
"user-search" "user-search"
@ -196,6 +213,15 @@
''; '';
}; };
locations."/_synapse/metrics" = {
proxyPass = "http://localhost:9009";
extraConfig = ''
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
'';
};
locations."/media" = { locations."/media" = {
proxyPass = "http://localhost:11111"; proxyPass = "http://localhost:11111";
extraConfig = '' extraConfig = ''