From fb1c32b81e86ba28504e5427c3f1609ebb39657e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Arranz?= Date: Tue, 20 Nov 2018 21:36:20 +0100 Subject: [PATCH] Add missing documentation regarding DB_HOST and ALLOWED_HOSTS --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 97bdef7..981c2f8 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,16 @@ The following environment variables are also honored for configuring your WireCl - `-e DEBUG=...` (defaults to "False", use "True" for running WireCloud in debug mode. Debug mode should be enabled for running WireCloud in standalone mode) +- `-e ALLOWED_HOSTS=...` (defaults to "*", whitespace whitespace-separated list + of allowed hosts. See [django documentation][ALLOWED_HOSTS] for more + details) - `-e DEFAULT_THEME=...` (defaults to "wirecloud.defaulttheme") - `-e DB_HOST=...` (defaults to nothing, provide a host value to connect this image with a DB server) - `-e DB_NAME=...` (defaults to "postgres") - `-e DB_USERNAME=...` (defaults to "postgres") - `-e DB_PASSWORD=...` (defaults to "postgres") +- `-e DB_PORT=...` (defaults to "5432") - `-e FORWARDED_ALLOW_IPS=...` (defaults to "*", set this to provide a list of trusted reverse proxies) - `-e ELASTICSEARCH2_URL=...` (defaults to nothing, leave it empty to use Whoosh @@ -51,6 +55,9 @@ the `X-Forwarded-Proto`, `X-Forwarded-Host` and `X-Forwarded-Port` headers appropriately. +[ALLOWED_HOSTS]: https://docs.djangoproject.com/en/2.1/ref/settings/#allowed-hosts + + ## Running manage.py commands You can run any available `manage.py` command by using `docker exec -ti some-wirecloud manage.py ...`. For example, you can create superusers/administrators by running the following command: