mirror of https://gitlab.crans.org/nounous/nixos
Ajout export metrics
parent
ebfb206fc1
commit
00c22e3422
|
@ -33,6 +33,7 @@
|
|||
443
|
||||
8008
|
||||
8448
|
||||
9009
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -47,6 +48,7 @@
|
|||
server_name = "crans.org";
|
||||
|
||||
report_stats = false;
|
||||
enable_metrics = true;
|
||||
|
||||
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 = {
|
||||
|
@ -125,7 +143,6 @@
|
|||
extras = [
|
||||
"oidc"
|
||||
"postgres"
|
||||
"sentry"
|
||||
"systemd"
|
||||
"url-preview"
|
||||
"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" = {
|
||||
proxyPass = "http://localhost:11111";
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in New Issue