mirror of https://gitlab.crans.org/nounous/nixos
Ajout export metrics
parent
ebfb206fc1
commit
00c22e3422
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in New Issue