synapse does not like ipv6 addresses'
This commit is contained in:
parent
d290548781
commit
9ee58bae40
3 changed files with 11 additions and 10 deletions
|
@ -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" = {
|
||||
|
|
|
@ -84,9 +84,10 @@
|
|||
}
|
||||
{
|
||||
job_name = "synapse";
|
||||
metrics_path = "/_synapse/metrics";
|
||||
static_configs = [{
|
||||
targets = [
|
||||
"nas.int.chir.rs:9009"
|
||||
"matrix.int.chir.rs:80"
|
||||
];
|
||||
}];
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue