bundlewrap/bundles/mx-puppet-discord/files/config.yaml
Franzi 4e72b41971
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/mx-puppet-discord: config tweaks
2020-05-16 10:06:40 +02:00

31 lines
1 KiB
YAML

bridge:
port: ${node.metadata['mx-puppet-discord'].get('port', 20000)}
bindAddress: ${node.metadata['mx-puppet-discord'].get('listen-addr', '127.0.0.1')}
domain: ${node.metadata['mx-puppet-discord']['homeserver']['domain']}
homeserverUrl: ${node.metadata['mx-puppet-discord']['homeserver']['url']}
enableGroupSync: true
presence:
enabled: true
interval: 500
disableStatusState: true
provisioning:
whitelist:
% for regex in node.metadata['mx-puppet-discord']['allowed-users']:
- "${regex}"
% endfor
database:
connString: "postgres://${node.metadata['mx-puppet-discord']['database']['user']}:${node.metadata['mx-puppet-discord']['database']['password']}@${node.metadata['mx-puppet-discord']['database'].get('host', 'localhost')}/${node.metadata['mx-puppet-discord']['database']['database']}?sslmode=disable"
logging:
console: info
lineDateFormat: YYYY-MM-DD HH:mm:ss.SSS
files:
- file: "/var/log/mx-puppet-discord/bridge.log"
level: info
datePattern: YYYY-MM-DD
maxFiles: 14d
maxSize: 50m