Skip to content

Commit cb7b9db

Browse files
authored
Merge pull request #19 from aarranz/fix/missing-env-vardocumentation
Add missing documentation regarding DB_HOST and ALLOWED_HOSTS
2 parents 7b4197c + fb1c32b commit cb7b9db

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ The following environment variables are also honored for configuring your WireCl
2727

2828
- `-e DEBUG=...` (defaults to "False", use "True" for running WireCloud in debug
2929
mode. Debug mode should be enabled for running WireCloud in standalone mode)
30+
- `-e ALLOWED_HOSTS=...` (defaults to "*", whitespace whitespace-separated list
31+
of allowed hosts. See [django documentation][ALLOWED_HOSTS] for more
32+
details)
3033
- `-e DEFAULT_THEME=...` (defaults to "wirecloud.defaulttheme")
3134
- `-e DB_HOST=...` (defaults to nothing, provide a host value to connect this
3235
image with a DB server)
3336
- `-e DB_NAME=...` (defaults to "postgres")
3437
- `-e DB_USERNAME=...` (defaults to "postgres")
3538
- `-e DB_PASSWORD=...` (defaults to "postgres")
39+
- `-e DB_PORT=...` (defaults to "5432")
3640
- `-e FORWARDED_ALLOW_IPS=...` (defaults to "*", set this to provide a list of
3741
trusted reverse proxies)
3842
- `-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
5155
appropriately.
5256

5357

58+
[ALLOWED_HOSTS]: https://docs.djangoproject.com/en/2.1/ref/settings/#allowed-hosts
59+
60+
5461
## Running manage.py commands
5562

5663
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:

0 commit comments

Comments
 (0)