add bundle for mx-puppet-discord
This commit is contained in:
parent
1856f4749c
commit
4c5a88f734
4 changed files with 135 additions and 0 deletions
28
bundles/mx-puppet-discord/files/config.yaml
Normal file
28
bundles/mx-puppet-discord/files/config.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
bridge:
|
||||
port: ${node.metadata['mx-puppet-discord'].get('port', 20000)}
|
||||
bindAddress: ${node.metadata['mx-puppet-discord'].get('listen-addr', '[::1]')}
|
||||
domain: ${node.metadata['mx-puppet-discord']['homeserver']['domain']}
|
||||
homeserverUrl: ${node.metadata['mx-puppet-discord']['homeserver']['url']}
|
||||
|
||||
presence:
|
||||
enabled: true
|
||||
interval: 500
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue