config.yaml
bridge:
# Port to host the bridge on
# Used for communication between the homeserver and the bridge
port: 8437
# The host connections to the bridge's webserver are allowed from
bindAddress: localhost
# Public domain of the homeserver
domain: matrix.org
# Reachable URL of the Matrix homeserver
homeserverUrl: https://matrix.org
# Display name of the bridge bot
#displayname: GroupMe bridge
# Avatar of the bridge bot
#avatarUrl: mxc://example.com/abcdef12345
# Strip the homeserver url from pings that are on these homeservers in the body
#stripHomeservers:
# - example.org
provisioning:
# Regex of Matrix IDs allowed to use the puppet bridge
whitelist:
# Allow a specific user
#- "@user:server\\.com"
# Allow users on a specific homeserver
- "@.*:yourserver\\.com"
# Allow anyone
#- ".*"
# Regex of Matrix IDs forbidden from using the puppet bridge
#blacklist:
# Disallow a specific user
#- "@user:server\\.com"
# Disallow users on a specific homeserver
#- "@.*:yourserver\\.com"
relay:
# Regex of Matrix IDs who are allowed to use the bridge in relay mode.
# Relay mode is when a single Discord bot account relays messages of
# multiple Matrix users
whitelist:
- "@.*:yourserver\\.com"
#blacklist:
#- "@user:yourserver\\.com"
selfService:
# Regex of Matrix IDs who are allowed to use bridge self-servicing (plumbed rooms)
whitelist:
- "@.*:server\\.com"
#blacklist:
#- "@user:server\\.com"
database:
# Use Postgres as a database backend
# If set, will be used instead of SQLite3
# Connection string to connect to the Postgres instance
# with username "user", password "pass", host "localhost" and database name "dbname".
# Modify each value as necessary
#connString: "postgres://user:pass@localhost/dbname?sslmode=disable"
# Use SQLite3 as a database backend
# The name of the database file
filename: database.db
logging:
# Log level of console output
# Allowed values starting with most verbose:
# silly, debug, verbose, info, warn, error
console: info
# Date and time formatting
lineDateFormat: MMM-D HH:mm:ss.SSS
# Logging files
# Log files are rotated daily by default
files:
# Log file path
- file: "bridge.log"
# Log level for this file
# Allowed values starting with most verbose:
# silly, debug, verbose, info, warn, error
level: info
# Date and time formatting
datePattern: YYYY-MM-DD
# Maximum number of logs to keep.
# This can be a number of files or number of days.
# If using days, add 'd' as a suffix
maxFiles: 14d
# Maximum size of the file after which it will rotate. This can be a
# number of bytes, or units of kb, mb, and gb. If using the units, add
# 'k', 'm', or 'g' as the suffix
maxSize: 50m
Dockerfile
FROM node:14-alpine AS builder
WORKDIR /opt/mx-puppet-groupme
RUN apk add --no-cache \
python3 \
g++ \
build-base \
cairo-dev \
jpeg-dev \
pango-dev \
musl-dev \
giflib-dev \
pixman-dev \
pangomm-dev \
libjpeg-turbo-dev \
freetype-dev
# run build process as user in case of npm pre hooks
# pre hooks are not executed while running as root
COPY . .
RUN chown -R node:node /opt/mx-puppet-groupme
USER node
RUN npm install
RUN npm run build
FROM node:14-alpine
VOLUME /data
ENV CONFIG_PATH=/data/config.yaml \
REGISTRATION_PATH=/data/groupme-registration.yaml
# su-exec is used by docker-run.sh to drop privileges
RUN apk add --no-cache su-exec pixman cairo pango giflib libjpeg
WORKDIR /opt/mx-puppet-groupme
COPY docker-run.sh ./
COPY --from=builder /opt/mx-puppet-groupme/ .
RUN chmod +x docker-run.sh
# change workdir to /data so relative paths in the config.yaml
# point to the persistent volume
WORKDIR /data
ENTRYPOINT ["/opt/mx-puppet-groupme/docker-run.sh"]
npm run start -- --register
Content type
Image
Digest
sha256:3deb6a729…
Size
73.6 MB
Last updated
over 2 years ago
docker pull dapperblondie/mautrix-groupme