From 7b03a2133b8b219f6fef4c892ab861c488ffa724 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 27 Apr 2022 17:22:28 +0300 Subject: [PATCH] Fix server --- profiles/servers/matrix-synapse.nix | 56 +++++++++++++++-------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/profiles/servers/matrix-synapse.nix b/profiles/servers/matrix-synapse.nix index 11318d7..aa16b1b 100644 --- a/profiles/servers/matrix-synapse.nix +++ b/profiles/servers/matrix-synapse.nix @@ -1,34 +1,36 @@ { pkgs, config, lib, ... }: { services.matrix-synapse = { enable = true; - allow_guest_access = false; - listeners = [{ - bind_address = "0.0.0.0"; - port = 13748; - resources = [ - { - compress = true; - names = [ "client" ]; - } - { - compress = false; - names = [ "federation" ]; - } + settings = { + allow_guest_access = false; + listeners = [{ + # bind_address = "0.0.0.0"; + port = 13748; + resources = [ + { + compress = true; + names = [ "client" ]; + } + { + compress = false; + names = [ "federation" ]; + } + ]; + type = "http"; + tls = false; + x_forwarded = true; + }]; + public_baseurl = "https://balsoft.ru"; + server_name = "balsoft.ru"; + turn_uris = + [ "turn:balsoft.ru?transport=udp" "turn:balsoft.ru?transport=tcp" ]; + extraConfigFiles = [ + config.secrets-envsubst.coturn.substituted + config.secrets-envsubst.matrix.substituted ]; - type = "http"; - tls = false; - x_forwarded = true; - }]; - public_baseurl = "https://balsoft.ru"; - server_name = "balsoft.ru"; - turn_uris = - [ "turn:balsoft.ru?transport=udp" "turn:balsoft.ru?transport=tcp" ]; - extraConfigFiles = [ - config.secrets-envsubst.coturn.substituted - config.secrets-envsubst.matrix.substituted - ]; - app_service_config_files = - [ config.secrets-envsubst.mautrix-telegram-registration.substituted ]; + app_service_config_files = + [ config.secrets-envsubst.mautrix-telegram-registration.substituted ]; + }; }; services.postgresql.enable = true;