Skip to content
Jason Volk edited this page Feb 16, 2023 · 9 revisions

Bridge Registration

  1. Follow instructions for setting up your bridge. This should produce a registration.yaml file.

    • Add the prefix "bridge_" to the as_token. Example: as_token: bridge_1m9jt3xt6qdb4...

    • The bridge id and the sender_localpart have to match at this time.

    The bridge user and room will be created based on the id automatically (e.g. !id:localhost). It is also okay if these already exist.

  2. Convert the registration.yaml to registration.json using a yaml2json converter such as apt-get install reserialize or a website.

    reserialize yaml2json registration.yaml > registration.json
    
  3. Open the console to enter the following command:

    bridge set /path/to/registration.json
    

    If the bridge has already been registered before then the prior configuration will be overwritten. Use bridge add to error instead of overwriting.

    The console command bridge will list all bridges by ID. bridge <id> will confirm the configuration for the bridge.

    Registrations and/or updates will take effect immediately without restarting the server or reloading m_bridge

    bridge del <id> will redact the registration and disconnect the bridge.

Clone this wiki locally