From d998907addb71a3ab562e3366e76bd72cff708b1 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Fri, 31 Jan 2025 12:30:48 -0300 Subject: [PATCH] Update docs and scripts from Dendrite to Synapse --- README.md | 17 +++++++++-------- setup.sh | 6 +++++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 16f5e40..631adfa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Dendrite Docker Bridges +# Synapse Docker Bridges -A simple way to set up Dendrite with bridges for WhatsApp, Telegram, and Discord, including automated media management. +A simple way to set up Synapse with bridges for WhatsApp, Telegram, and Discord, including automated media management.

dendrite-docker-bridges @@ -26,8 +26,8 @@ A simple way to set up Dendrite with bridges for WhatsApp, Telegram, and Discord 1. Clone this repository and enter the directory: ```sh -git clone https://gitlab.com/rogs/dendrite-docker-bridges.git -cd dendrite-docker-bridges +git clone https://gitlab.com/rogs/synapse-docker-bridges.git +cd synapse-docker-bridges ``` 2. Run `setup.sh`: @@ -39,14 +39,14 @@ cd dendrite-docker-bridges This script will: - Prompt you for your domain (the one you configured in "Before Starting") - Generate a secure database password -- Create your private key and config in the `./config/dendrite` directory +- Create your private key and config in the `./config/synapse` directory - Display two important pieces of information: - The "Registration shared secret" - The Database URI **Important**: Make sure to save both the registration shared secret AND the Database URI in a secure location. The Database URI will be needed later when configuring the bridges for WhatsApp, Telegram, and Discord. -3. Open your configuration file located at `./config/dendrite/dendrite.yaml`. **You may need `sudo` to edit this file.** Search for `registration_shared_secret` and paste the registration secret you copied in the previous step. The section should look similar to this: +3. Open your configuration file located at `./config/synapse/homeserver.yaml`. **You may need `sudo` to edit this file.** Search for `registration_shared_secret` and paste the registration secret you copied in the previous step. The section should look similar to this: ```yaml client_api: @@ -72,7 +72,7 @@ docker compose up -d postgres monolith This script will create three new databases: `whatsapp`, `telegram`, and `discord`. These will be used by the bridges. -6. Verify the Dendrite setup by navigating to `http://your-ip-address:8008` in your browser. +6. Verify the Synapse setup by navigating to `http://your-ip-address:8008` in your browser. ![image](https://gitlab.com/-/project/64900187/uploads/21724e8ed403f7d3a40737e39e8c5ee3/image.png) 7. Create your first user using the provided script: @@ -83,8 +83,9 @@ This script will create three new databases: `whatsapp`, `telegram`, and `discor The script will: - Prompt you for a username. +- Prompt you for a password. - Ask if the user should be an admin. -- Create the account in your Dendrite server. +- Create the account in your Synapse server. - Display an access token. **Important**: Save the access token displayed after user creation! You'll need it to enable double puppeting in the WhatsApp, Telegram, and Discord bridges. Double puppeting allows messages you send through the original apps to appear as coming from your Matrix account. diff --git a/setup.sh b/setup.sh index df85e56..6c46a05 100755 --- a/setup.sh +++ b/setup.sh @@ -25,6 +25,10 @@ docker run -it --rm \ SHARED_SECRET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 50) echo echo "Registration shared secret: $SHARED_SECRET" -echo "Database URI: postgres://synapse:$DB_PASSWORD@postgres/synapse?sslmode=disable" +echo "Database info:" +echo " - Host: postgres" +echo " - Username: synapse" +echo " - Password: $DB_PASSWORD" +echo " - Database: synapse" echo echo "Make sure to save this information securely!"