matrix: updated to synapse v1.61
This commit is contained in:
parent
6743354a7d
commit
9513f09057
|
@ -17,13 +17,16 @@
|
|||
services = {
|
||||
matrix-synapse = {
|
||||
enable = true; # Enable the synapse server
|
||||
server_name = "mcwhirter.io"; # Server's public domain name
|
||||
public_baseurl = "https://synapse.mcwhirter.io:443/"; # Matrix target URL
|
||||
settings = {
|
||||
enable_registration = true; # Toggle user registration
|
||||
enable_registration_without_verification = true;
|
||||
extraConfig = ''
|
||||
enable_group_creation: true # Allow users to create communities
|
||||
'';
|
||||
listeners = [
|
||||
{
|
||||
# federation
|
||||
bind_address = "";
|
||||
bind_addresses = [];
|
||||
port = 8448;
|
||||
resources = [
|
||||
{
|
||||
|
@ -41,7 +44,7 @@
|
|||
}
|
||||
{
|
||||
# client
|
||||
bind_address = "::1"; # Listen on localhost only
|
||||
bind_addresses = ["::1"]; # Listen on localhost only
|
||||
port = 8008; # Port to listen on
|
||||
resources = [
|
||||
{
|
||||
|
@ -59,6 +62,8 @@
|
|||
}
|
||||
];
|
||||
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_private_key_path = "/var/lib/acme/mcwhirter.io/key.pem";
|
||||
turn_shared_secret = "IZI43ylg6aJdMwy5MyhUPqT8SJD4C3P1vDcIFMzqGvTXJiCjAEvnPcDCBZfig5Q6";
|
||||
|
@ -69,9 +74,7 @@
|
|||
"turn:turn.mcwhirter.io:5350?transport=tcp"
|
||||
];
|
||||
url_preview_enabled = true;
|
||||
extraConfig = ''
|
||||
enable_group_creation: true # Allow users to create communities
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
|
@ -122,7 +125,6 @@
|
|||
|
||||
postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_10;
|
||||
ensureDatabases = ["matrix-synapse"]; # Ensure the database persists
|
||||
ensureUsers = [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue