Commit ec8f1dfe authored by Tulir Asokan's avatar Tulir Asokan 🐈

Add example config for standalone image

parent 42ef29d0
Pipeline #523 passed with stages
in 56 seconds
......@@ -6,14 +6,14 @@ function fixperms {
cd /opt/maubot/dockerbot
#if [ ! -f /data/config.y>aml ]; then
# cp supportportal/standalone/example-config.yaml /data/config.yaml
# echo "Config file not found. Example config copied to /data/config.yaml"
# echo "Please modify the config file to your liking and restart the container."
# fixperms
# exit
#fi
if [ ! -f /data/config.yaml ]; then
cp dockerbot/standalone/example-config.yaml /data/config.yaml
echo "Config file not found. Example config copied to /data/config.yaml"
echo "Please modify the config file to your liking and restart the container."
fixperms
exit
fi
fixperms
exec su-exec $UID:$GID python3 -m maubot.standalone -m maubot.yaml
# -c /data/config.yaml -b dockerbot/standalone/example-config.yaml
exec su-exec $UID:$GID python3 -m maubot.standalone -m maubot.yaml \
-c /data/config.yaml -b dockerbot/standalone/example-config.yaml
user:
credentials:
id: "@docker:example.com"
homeserver: https://example.com
access_token: foo
sync: true
autojoin: false
displayname: Docker Bot
avatar_url: mxc://maunium.net/gHodUFiAfViBqcdxfoBoPYxN
logging:
version: 1
formatters:
colored:
(): maubot.lib.color_log.ColorFormatter
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: colored
loggers:
maubot:
level: DEBUG
mautrix:
level: DEBUG
aiohttp:
level: INFO
root:
level: DEBUG
handlers: [console]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment