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,13 +17,16 @@
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;
extraConfig = ''
enable_group_creation: true # Allow users to create communities
'';
listeners = [ listeners = [
{ {
# federation # federation
bind_address = ""; bind_addresses = [];
port = 8448; port = 8448;
resources = [ resources = [
{ {
@ -41,7 +44,7 @@
} }
{ {
# client # client
bind_address = "::1"; # Listen on localhost only bind_addresses = ["::1"]; # Listen on localhost only
port = 8008; # Port to listen on port = 8008; # Port to listen on
resources = [ resources = [
{ {
@ -59,6 +62,8 @@
} }
]; ];
max_upload_size = "200M"; # Also set client_max_body_size to at least this max_upload_size = "200M"; # Also set client_max_body_size to at least this
public_baseurl = "https://synapse.mcwhirter.io:443/"; # Matrix target URL
server_name = "mcwhirter.io"; # Server's public domain name
tls_certificate_path = "/var/lib/acme/mcwhirter.io/fullchain.pem"; tls_certificate_path = "/var/lib/acme/mcwhirter.io/fullchain.pem";
tls_private_key_path = "/var/lib/acme/mcwhirter.io/key.pem"; tls_private_key_path = "/var/lib/acme/mcwhirter.io/key.pem";
turn_shared_secret = "IZI43ylg6aJdMwy5MyhUPqT8SJD4C3P1vDcIFMzqGvTXJiCjAEvnPcDCBZfig5Q6"; turn_shared_secret = "IZI43ylg6aJdMwy5MyhUPqT8SJD4C3P1vDcIFMzqGvTXJiCjAEvnPcDCBZfig5Q6";
@ -69,9 +74,7 @@
"turn:turn.mcwhirter.io:5350?transport=tcp" "turn:turn.mcwhirter.io:5350?transport=tcp"
]; ];
url_preview_enabled = true; url_preview_enabled = true;
extraConfig = '' };
enable_group_creation: true # Allow users to create communities
'';
}; };
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 = [
{ {