matrix: updated to synapse v1.61

This commit is contained in:
Serĉanto de Scio 2022-06-27 13:55:55 +10:00
parent 6743354a7d
commit 9513f09057
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -17,61 +17,64 @@
services = { services = {
matrix-synapse = { matrix-synapse = {
enable = true; # Enable the synapse server enable = true; # Enable the synapse server
server_name = "mcwhirter.io"; # Server's public domain name settings = {
public_baseurl = "https://synapse.mcwhirter.io:443/"; # Matrix target URL enable_registration = true; # Toggle user registration
enable_registration = true; # Toggle user registration enable_registration_without_verification = true;
listeners = [ extraConfig = ''
{ enable_group_creation: true # Allow users to create communities
# federation '';
bind_address = ""; listeners = [
port = 8448; {
resources = [ # federation
{ bind_addresses = [];
compress = true; port = 8448;
names = ["client"]; resources = [
} {
{ compress = true;
compress = false; names = ["client"];
names = ["federation"]; }
} {
]; compress = false;
tls = true; names = ["federation"];
type = "http"; }
x_forwarded = false; ];
} tls = true;
{ type = "http";
# client x_forwarded = false;
bind_address = "::1"; # Listen on localhost only }
port = 8008; # Port to listen on {
resources = [ # client
{ bind_addresses = ["::1"]; # Listen on localhost only
compress = true; port = 8008; # Port to listen on
names = ["client"]; resources = [
} {
{ compress = true;
compress = false; names = ["client"];
names = ["federation"]; }
} {
]; compress = false;
tls = true; names = ["federation"];
type = "http"; }
x_forwarded = true; ];
} tls = true;
]; type = "http";
max_upload_size = "200M"; # Also set client_max_body_size to at least this x_forwarded = true;
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"; max_upload_size = "200M"; # Also set client_max_body_size to at least this
turn_uris = [ public_baseurl = "https://synapse.mcwhirter.io:443/"; # Matrix target URL
"turn:turn.mcwhirter.io:5349?transport=udp" server_name = "mcwhirter.io"; # Server's public domain name
"turn:turn.mcwhirter.io:5350?transport=udp" tls_certificate_path = "/var/lib/acme/mcwhirter.io/fullchain.pem";
"turn:turn.mcwhirter.io:5349?transport=tcp" tls_private_key_path = "/var/lib/acme/mcwhirter.io/key.pem";
"turn:turn.mcwhirter.io:5350?transport=tcp" turn_shared_secret = "IZI43ylg6aJdMwy5MyhUPqT8SJD4C3P1vDcIFMzqGvTXJiCjAEvnPcDCBZfig5Q6";
]; turn_uris = [
url_preview_enabled = true; "turn:turn.mcwhirter.io:5349?transport=udp"
extraConfig = '' "turn:turn.mcwhirter.io:5350?transport=udp"
enable_group_creation: true # Allow users to create communities "turn:turn.mcwhirter.io:5349?transport=tcp"
''; "turn:turn.mcwhirter.io:5350?transport=tcp"
];
url_preview_enabled = true;
};
}; };
nginx = { nginx = {
@ -122,7 +125,6 @@
postgresql = { postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_10;
ensureDatabases = ["matrix-synapse"]; # Ensure the database persists ensureDatabases = ["matrix-synapse"]; # Ensure the database persists
ensureUsers = [ ensureUsers = [
{ {