Setting up Appservices
Getting help
If you run into any problems while setting up an Appservice: ask us in #continuwuity:continuwuity.org or open an issue on Forgejo.
Set up the appservice - general instructions
Follow whatever instructions are given by the appservice. This usually includes downloading, changing its config (setting domain, homeserver url, port etc.) and later starting it.
At some point the appservice guide should ask you to add a registration yaml file to the homeserver. In Synapse you would do this by adding the path to the homeserver.yaml, but in Continuwuity you can do this from within Matrix:
First, go into the #admins room of your homeserver. The first person that
registered on the homeserver automatically joins it. Then send a message into
the room like this:
You can confirm it worked by sending a message like this:
!admin appservices list
The server bot should answer with Appservices (1): your-bridge
Then you are done. Continuwuity will send messages to the appservices and the appservice can send requests to the homeserver. You don't need to restart Continuwuity, but if it doesn't work, restarting while the appservice is running could help.
Changing parts of the appservice configuration
If you want to change an option in the yaml configuration without
re-registering, you can send the !admin appservices register command again,
making sure that the id is the same.
For example, take this registration yaml:
This new configuration will be applied immediately. Note that this replaces the prior configuration. You must send the complete configuration, changing the fields you want to change.
You can see the current configuration using !admin appservices show-appservice-config <id>.
Appservice-specific instructions
Remove an appservice
To remove an appservice go to your admin room and execute
!admin appservices unregister <name>
where <name> one of the output of appservices list.
Caveats
Docker DNS
If you follow the DNS tuning guide and mount a custom /etc/resolv.conf, you may not be able to connect to appservices' containers using their hostnames. Follow the workaround in the guide to connect to your appservice using static IPs.