run and config.yalm

master
Bel LaPointe 2022-01-13 22:05:40 -05:00
parent 4f214dcd94
commit 762d73b7ac
4 changed files with 80 additions and 0 deletions

2
mx-disco-bridge/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/data
**/*.sw*

View File

@ -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

1
mx-disco-bridge/link.txt Normal file
View File

@ -0,0 +1 @@
https://boilingsteam.com/how-to-bridge-discord-in-matrix/

9
mx-disco-bridge/run.sh Normal file
View File

@ -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 "$@"