add example json env configuration

Adds some more detail on how to pass json configurations as env vars in docker
This commit is contained in:
7opf 2021-04-11 14:18:14 +02:00 committed by GitHub
parent 873219edc6
commit ab93399937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -108,7 +108,15 @@ docker pull synclounge/synclounge
docker run -p 8088:8088 synclounge/synclounge:latest docker run -p 8088:8088 synclounge/synclounge:latest
``` ```
You can use environment variables to change any of the [default configuration](https://github.com/synclounge/synclounge/blob/master/config/defaults.js). You can use environment variables to change any of the [default configuration](https://github.com/synclounge/synclounge/blob/master/config/defaults.js).
Note that nested objects and arrays can be passed as environment variables in the following way:
```
AUTHENTICATION='{"mechanism":"plex","type":["server"],"authorized":["MACHINE_ID"]}'
SERVERS='[{"name":"My Server","location":"Mothership","url":"https://myserver.com","image":"https://myserver.com/myimage.jpg"}]'
```
#### Linux (Without Docker) #### Linux (Without Docker)