Corrected federation
This commit is contained in:
parent
dfae7e01bc
commit
bf97625c7a
|
@ -23,24 +23,37 @@
|
|||
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 = [ {
|
||||
bind_address = "::1"; # Listen on localhost only
|
||||
port = 8008; # Port to listen on
|
||||
resources = [
|
||||
{
|
||||
compress = true;
|
||||
names = [ "client" ];
|
||||
} {
|
||||
compress = false;
|
||||
names = [ "federation" ];
|
||||
} ];
|
||||
tls = true;
|
||||
type = "http";
|
||||
x_forwarded = true;
|
||||
} ];
|
||||
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 = [
|
||||
{
|
||||
compress = true;
|
||||
names = [ "client" ];
|
||||
} {
|
||||
compress = false;
|
||||
names = [ "federation" ];
|
||||
} ];
|
||||
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"
|
||||
|
@ -149,7 +162,8 @@
|
|||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
443 # HTTPS
|
||||
443 # HTTPS
|
||||
8448 # Matrix federation
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue