Update docs and scripts from Dendrite to Synapse
This commit is contained in:
parent
f93b1e7a38
commit
d998907add
17
README.md
17
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.
|
||||
|
||||
<p align="center">
|
||||
<img src="https://gitlab.com/uploads/-/system/project/avatar/64900187/logo.png" alt="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.
|
||||

|
||||
|
||||
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.
|
||||
|
6
setup.sh
6
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!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user