run and config.yalm
parent
4f214dcd94
commit
762d73b7ac
|
|
@ -0,0 +1,2 @@
|
|||
/data
|
||||
**/*.sw*
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
https://boilingsteam.com/how-to-bridge-discord-in-matrix/
|
||||
|
|
@ -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 "$@"
|
||||
Loading…
Reference in New Issue