From ab933999375f480f1e123b69581738f1d7f3eb38 Mon Sep 17 00:00:00 2001 From: 7opf Date: Sun, 11 Apr 2021 14:18:14 +0200 Subject: [PATCH] add example json env configuration Adds some more detail on how to pass json configurations as env vars in docker --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 527c65b9..855a25a1 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,15 @@ docker pull synclounge/synclounge 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)