mirror of
https://github.com/42wim/matterbridge.git
synced 2025-04-22 07:37:51 +02:00
Added documentation for use of environment variables in config
parent
482ee505ce
commit
67f7af1b81
@ -12,4 +12,28 @@ account="protocol2.myprotocol2"
|
||||
channel="protocol2channel"
|
||||
```
|
||||
|
||||
See [[Gateway-config-(channel-rules)]] to see how ```protocolchannel``` or ```protocol2channel``` should be defined.
|
||||
See [[Gateway-config-(channel-rules)]] to see how ```protocolchannel``` or ```protocol2channel``` should be defined.
|
||||
|
||||
### Environment variables
|
||||
|
||||
Environment variables can be used to override configuration settings, using the form:
|
||||
|
||||
`MATTERBRIDGE_PROTOCOL_ACCOUNT_KEY`
|
||||
|
||||
This can be useful to protect secrets when using [[docker|Deploy: Docker]]. For example, you can override this config:
|
||||
|
||||
```
|
||||
[mattermost]
|
||||
[mattermost.work]
|
||||
Team="yourteam"
|
||||
Login="yourlogin"
|
||||
Password="yourpass"
|
||||
```
|
||||
|
||||
by using environment variables:
|
||||
|
||||
```
|
||||
MATTERBRIDGE_MATTERMOST_WORK_TEAM="newteam"
|
||||
MATTERBRIDGE_MATTERMOST_WORK_LOGIN="newlogin"
|
||||
MATTERBRIDGE_MATTERMOST_WORK_PASSWORD="newpassword"
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user