Skip to content

Instantly share code, notes, and snippets.

@j0lol
Last active February 25, 2020 19:38
Show Gist options
  • Save j0lol/ff95783de89b6afec2933a729a791fbd to your computer and use it in GitHub Desktop.
Save j0lol/ff95783de89b6afec2933a729a791fbd to your computer and use it in GitHub Desktop.
alright sorry for being so unprofessional, this is hastily wrote up so i dont forget what i did x3
someone please put this on the wiki!
ok so the main things you need to do is
1: you need to mount the registration file in the synapse container!
to do this, i made a directory called `/matrix/outside` where i put `discord-registration.yaml`
Here's what i put in `vars.yml` for that config:
```
matrix_synapse_container_additional_volumes: [{"src": "/matrix/outside", "dst": "/inside", "options": "ro"}]
matrix_synapse_app_service_config_files: ["/inside/discord-registration.yaml"]
```
You'll need to run setup-all after this to put this in your synapse config!
2: You need to specify an external IP! The container cant use `localhost`
There's two files you need to change for this:
in `discord-registration.yaml` (which should be in /matrix/outside, copy it there if it isnt!)
you want to change the `url` line to
`url: 'http://{YOUR SERVERS EXTERNAL IP}:{THE PORT YOU PICKED}`
in `mx-puppet-discord/config.yaml`, you want to change `bindAddress:` to your external IP!
if that doesnt work, please message me @jo:catgirl.party or ask for help in #mx-puppet-bridge:sorunome.de
(oh i would like to add this officially, i just need mx-puppet-discord in a docker container)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment