diff --git a/mx-disco-bridge/.gitignore b/mx-disco-bridge/.gitignore new file mode 100644 index 0000000..18a967e --- /dev/null +++ b/mx-disco-bridge/.gitignore @@ -0,0 +1,2 @@ +/data +**/*.sw* diff --git a/mx-disco-bridge/config.yaml b/mx-disco-bridge/config.yaml new file mode 100644 index 0000000..7d7ec93 --- /dev/null +++ b/mx-disco-bridge/config.yaml @@ -0,0 +1,68 @@ +bridge: + port: 8434 + bindAddress: 0.0.0.0 + + domain: m2.bltrucks.top + homeserverUrl: https://m2.bltrucks.top + + # Enables automatic double-puppeting when set. Automatic double-puppeting + # allows Discord accounts to control Matrix accounts. So sending a + # a message on Discord would send it on Matrix from your Matrix account + # + # loginSharedSecretMap is simply a map from homeserver URL + # to shared secret. Example: + # + # loginSharedSecretMap: + # matrix.org: "YOUR SHARED SECRET GOES HERE" + # + # See https://github.com/devture/matrix-synapse-shared-secret-auth for + # the necessary server module + #loginSharedSecretMap: + + displayname: Discord Puppet Bridge + enableGroupSync: false + +presence: + enabled: false + interval: 500 + +provisioning: + whitelist: + - @bel:m2.bltrucks.top + #blacklist: + +relay: + whitelist: + - "@.*:m2.bltrucks.top" + +selfService: + whitelist: + - "@.*:m2.bltrucks.top" + +# Map of homeserver URLs to their C-S API endpoint +# Useful for double-puppeting if .well-known is unavailable for some reason +#homeserverUrlMap: + #yourserver.com: http://localhost:1234 + +namePatterns: + user: :name + userOverride: :displayname + room: :name + group: :name + +database: + filename: database.db + +limits: {} + #maxAutojoinUsers: 200 + #roomUserAutojoinDelay: 5000 + +logging: + console: info + lineDateFormat: MMM-D HH:mm:ss.SSS + files: + - file: "bridge.log" + level: info + datePattern: YYYY-MM-DD + maxFiles: 14d + maxSize: 50m diff --git a/mx-disco-bridge/link.txt b/mx-disco-bridge/link.txt new file mode 100644 index 0000000..378e8b4 --- /dev/null +++ b/mx-disco-bridge/link.txt @@ -0,0 +1 @@ +https://boilingsteam.com/how-to-bridge-discord-in-matrix/ diff --git a/mx-disco-bridge/run.sh b/mx-disco-bridge/run.sh new file mode 100644 index 0000000..47aeee0 --- /dev/null +++ b/mx-disco-bridge/run.sh @@ -0,0 +1,9 @@ +#! /bin/bash + +mkdir -p $PWD/data +if [ ! -f $PWD/data/config.yaml ]; then + #wget -O $PWD/data/config.yaml https://raw.githubusercontent.com/matrix-discord/mx-puppet-discord/master/sample.config.yaml + cp $PWD/config.yaml $PWD/data/config.yaml +fi +touch $PWD/data/{database.db,bridge.log,config.yaml} +docker run -v $PWD/data:/data --rm -it -w /data sorunome/mx-puppet-discord:latest "$@"