Skip to content

Commit

Permalink
build: pass ALLOWED_HOSTS env var to app
Browse files Browse the repository at this point in the history
This variable allows you to set which IPs the app may be accessed from. This is useful to make it accessible when testing on a LAN network with another device (e.g. a mobile phone). The list of allowed hosts is passed as a space-separated string in the environment variable (e.g. `ALLOWED_HOSTS="127.0.0.1 localhost 192.168.100.25"`)
  • Loading branch information
Restioson committed Oct 3, 2024
1 parent 7865e43 commit 496edfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ services:
- EMAIL_PORT=${EMAIL_PORT-"none"}
- EMAIL_BACKEND_CONSOLE=${EMAIL_BACKEND_CONSOLE:-True}
- EMAIL_USE_TLS=${EMAIL_USE_TLS:-True}
- ALLOWED_HOSTS=${ALLOWED_HOSTS-}

0 comments on commit 496edfe

Please sign in to comment.