diff --git a/README.md b/README.md index 1de91b7..84ae710 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Go to the desired repository's webhooks settings, in Gitlab, under **Your repo** Configure the **URL** as follows: ```sh -https://${server_name}/${plugin_base_path}/${instance_id}/${instance_path}?room=${room_id} +https://${server_name}/${plugin_base_path}/${instance_id}/webhooks?room=${room_id} ``` Where @@ -59,12 +59,11 @@ Where - `${server_name}` is an ip address or domain name where your Maubot instance is reachable - `${base_path}` is the base path for plugin endpoint as configured under `server.plugin_base_path` in `config.yaml` - `${instance_id}` is the identifier you previously defined while setting up the plugin instance, here `my_gitlab_bot` -- `${instance_path}` is the `path` defined in **Maubot Manager** > **Instances** > `my_gitlab_bot` > `path` -- `${room_id}` is the Matrix room identifier as defined in its URL, or under **Room Settings** > **Advanced** > **Internal room identifier** +- `${room_id}` is the Matrix room identifier as defined in its URL (or, if you're using the Element client) under **Room Settings** > **Advanced** > **Internal room identifier**. Make sure to use a room where the Gitlab bot is invited, otherwise the webhook will fail with an HTTP 403 error. Which gives for example, with the default configuration: . -Then configure the `secret` token as previously defined. +As `secret`, set the token shown in Maubot's **Instances** > **my_gitlab_bot** > **secret:** Afterwhile, configure the desired permissions, [enable SSL verification if needed](https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#ssl-verification) and create the webhook.