1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Remove matrix exporter

This commit is contained in:
RGBCube 2024-01-18 07:42:27 +03:00
parent ec6ba9527d
commit a9b819deed
No known key found for this signature in database

View file

@ -21,20 +21,6 @@ in serverSystemConfiguration {
age.secrets."cube/password.secret.matrix-synapse".owner = "matrix-synapse"; age.secrets."cube/password.secret.matrix-synapse".owner = "matrix-synapse";
age.secrets."cube/password.sync.matrix-synapse".owner = "matrix-synapse"; age.secrets."cube/password.sync.matrix-synapse".owner = "matrix-synapse";
services.prometheus = {
scrapeConfigs = [{
job_name = "matrix-synapse";
metrics_path = "/_synapse/metrics";
static_configs = [{
labels.job = "matrix-synapse";
targets = [
"[::]:${toString exporterPort}"
];
}];
}];
};
services.postgresql = { services.postgresql = {
ensureDatabases = [ "matrix-synapse" "matrix-sliding-sync" ]; ensureDatabases = [ "matrix-synapse" "matrix-sliding-sync" ];
ensureUsers = [ ensureUsers = [
@ -82,30 +68,19 @@ in serverSystemConfiguration {
# Sets registration_shared_secret. # Sets registration_shared_secret.
extraConfigFiles = [ config.age.secrets."cube/password.secret.matrix-synapse".path ]; extraConfigFiles = [ config.age.secrets."cube/password.secret.matrix-synapse".path ];
settings.listeners = [ settings.listeners = [{
{ port = synapsePort;
port = synapsePort;
bind_addresses = [ "::" ]; bind_addresses = [ "::" ];
tls = false; tls = false;
type = "http"; type = "http";
x_forwarded = true; x_forwarded = true;
resources = [{ resources = [{
compress = false; compress = false;
names = [ "client" "federation" ]; names = [ "client" "federation" ];
}]; }];
} }];
{
port = exporterPort;
bind_addresses = [ "::" ];
tls = false;
type = "metrics";
resources = [];
}
];
}; };
services.matrix-sliding-sync = enabled { services.matrix-sliding-sync = enabled {