diff --git a/README.md b/README.md index 5a5a1bce5..4c7268f6f 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,8 @@ docker run --rm -v ~/Solid:/data -p 3000:3000 -it solidproject/community-server: docker run --rm -p 3000:3000 -it solidproject/community-server -c config/default.json # Or use your own configuration mapped to the right directory docker run --rm -v ~/solid-config:/config -p 3000:3000 -it solidproject/community-server -c /config/my-config.json +# Or use environment variables to configure your css instance +docker run --rm -v ~/Solid:/data -p 3000:3000 -it -e CSS_CONFIG=config/file-no-setup.json -e CSS_LOGGING_LEVEL=debug solidproject/community-server ``` ### ๐Ÿ—ƒ๏ธ Helm Chart @@ -119,6 +121,15 @@ to some commonly used settings: | `--seededPodConfigJson` | | Path to the file that keeps track of seeded Pod configurations. | | `--mainModulePath, -m` | | Path from where Components.js will start its lookup when initializing configurations. | +### ๐Ÿ–ฅ๏ธ Environment variables +Parameters can also be passed through environment variables. + +They are prefixed with `CSS_` and converted from `camelCase` to `CAMEL_CASE` + +> eg. `--showStackTrace` => `CSS_SHOW_STACK_TRACE` + +**Note: command-line arguments will always override environment variables!** + ### ๐Ÿงถ Custom configurations More substantial changes to server behavior can be achieved by writing new configuration files in JSON-LD.