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; }; } );