Corrected federation

This commit is contained in:
Craige McWhirter 2020-10-03 20:13:25 +10:00
parent dfae7e01bc
commit bf97625c7a
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -23,7 +23,19 @@
public_baseurl = "https://synapse.mcwhirter.io:443/"; # Matrix target URL
web_client = true; # Whether to serve a web client
enable_registration = true; # Toggle user registration
listeners = [ {
listeners = [
{ # federation
bind_address = "";
port = 8448;
resources = [
{ compress = true; names = [ "client" ]; }
{ compress = false; names = [ "federation" ]; }
];
tls = true;
type = "http";
x_forwarded = false;
}
{ # client
bind_address = "::1"; # Listen on localhost only
port = 8008; # Port to listen on
resources = [
@ -37,10 +49,11 @@
tls = true;
type = "http";
x_forwarded = true;
} ];
}
];
max_upload_size = "200M"; # Also set client_max_body_size to at least this
tls_certificate_path = "/var/lib/acme/synapse.mcwhirter.io/fullchain.pem";
tls_private_key_path = "/var/lib/acme/synapse.mcwhirter.io/key.pem";
tls_certificate_path = "/var/lib/acme/mcwhirter.io/fullchain.pem";
tls_private_key_path = "/var/lib/acme/mcwhirter.io/key.pem";
turn_shared_secret = "IZI43ylg6aJdMwy5MyhUPqT8SJD4C3P1vDcIFMzqGvTXJiCjAEvnPcDCBZfig5Q6";
turn_uris = [
"turn:turn.mcwhirter.io:5349?transport=udp"
@ -150,6 +163,7 @@
enable = true;
allowedTCPPorts = [
443 # HTTPS
8448 # Matrix federation
];
};