synapse does not like ipv6 addresses'

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-03 15:23:05 +01:00
parent d290548781
commit 9ee58bae40
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 11 additions and 10 deletions

View file

@ -108,6 +108,11 @@ in
return 200 '{ "m.homeserver": { "base_url": "https://matrix.chir.rs" } }';
'';
};
locations."/_synapse/metrics" = {
extraConfig = ''
return 404 'Not found';
'';
};
};
services.nginx.virtualHosts."chir.rs" = {
locations."/.well-known/matrix/server" = {

View file

@ -84,9 +84,10 @@
}
{
job_name = "synapse";
metrics_path = "/_synapse/metrics";
static_configs = [{
targets = [
"nas.int.chir.rs:9009"
"matrix.int.chir.rs:80"
];
}];
}

View file

@ -11,17 +11,10 @@
x_forwarded = true;
bind_addresses = [ "::1" "127.0.0.1" ];
resources = [{
names = [ "client" "federation" ];
names = [ "client" "federation" "metrics" ];
compress = false;
}];
}
{
port = 9009;
type = "metrics";
tls = false;
bind_addresses = [ "::" ];
resources = [ ];
}];
}];
admin_contact = "mailto:lotte@chir.rs";
retention.enabled = true;
database = {
@ -84,6 +77,8 @@
add_header Alt-Svc 'h3=":443"';
'';
synapse = {
forceSSL = false;
addSSL = true;
listenAddresses = listenIPs;
locations."/_matrix" = {
proxyPass = "http://localhost:8008";