From 282506c547069652ba85ec5e7144ee1994388068 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 20 Dec 2024 17:33:02 +0100 Subject: [PATCH] Specify bridge origin --- module.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module.nix b/module.nix index 73b054f..0030fdf 100644 --- a/module.nix +++ b/module.nix @@ -27,6 +27,7 @@ in namespace = mkStringOption "The prefix to use for the MXIDs/aliases of bridged users/rooms. Should end with a _!" "_ooye_"; discordTokenPath = mkStringOption "The path to the discord token file." "/etc/ooye-discord-token"; socket = mkStringOption "The socket to listen on, can either be a port number or a unix socket path." "6693"; + bridgeOrigin = mkStringOption "The web frontend URL for the bridge, defaults to http://localhost:{socket}" ""; enableSynapseIntegration = lib.mkEnableOption "Enable Synapse integration"; }; @@ -62,6 +63,7 @@ in content_length_workaround = false; include_user_id_in_mxid = true; server_origin = cfg.homeserver; + bridge_origin = if (cfg.bridgeOrigin == "") then "http://localhost:${cfg.socket}" else cfg.bridgeOrigin; }; } );