diff --git a/modules/conduit.nix b/modules/conduit.nix index 0bdc80f..0f1e68d 100644 --- a/modules/conduit.nix +++ b/modules/conduit.nix @@ -1,12 +1,10 @@ -{ config -, pkgsUnstable -, inputs -, ... -}: - -let +{ + config, + pkgsUnstable, + inputs, + ... +}: let # You'll need to edit these values - # The hostname that will appear in your user and room IDs server_name = "katzen.cafe"; @@ -35,12 +33,13 @@ let { "m.homeserver": { "base_url": "https://${matrix_hostname}" + }, + "org.matrix.msc3575.proxy": { + "url": "https://${matrix_hostname}" } } ''; -in - -{ +in { # Configure Conduit itself services.matrix-conduit = { enable = true; @@ -94,7 +93,8 @@ in addr = "[::]"; port = 443; ssl = true; - } { + } + { addr = "0.0.0.0"; port = 8448; ssl = true; @@ -152,13 +152,13 @@ in upstreams = { "backend_conduit" = { servers = { - "[::1]:${toString config.services.matrix-conduit.settings.global.port}" = { }; + "[::1]:${toString config.services.matrix-conduit.settings.global.port}" = {}; }; }; }; }; # Open firewall ports for HTTP, HTTPS, and Matrix federation - networking.firewall.allowedTCPPorts = [ 80 443 8448 ]; - networking.firewall.allowedUDPPorts = [ 80 443 8448 ]; + networking.firewall.allowedTCPPorts = [80 443 8448]; + networking.firewall.allowedUDPPorts = [80 443 8448]; }