mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-01-22 16:50:13 +00:00
add TA_HOST env for ALLOWED_HOSTS
This commit is contained in:
parent
91bccfd057
commit
3b17c01c6d
@ -13,6 +13,7 @@ required="Missing required environment variable"
|
||||
[[ -f $lockfile ]] || : "${TA_USERNAME:?$required}"
|
||||
: "${TA_PASSWORD:?$required}"
|
||||
: "${ELASTIC_PASSWORD:?$required}"
|
||||
: "${TA_HOST:?$required}"
|
||||
|
||||
# ugly nginx and uwsgi port overwrite with env vars
|
||||
if [[ -n "$TA_PORT" ]]; then
|
||||
|
@ -30,7 +30,7 @@ SECRET_KEY = PW_HASH.hexdigest()
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = bool(environ.get("DJANGO_DEBUG"))
|
||||
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
ALLOWED_HOSTS = [i.strip() for i in environ.get("TA_HOST").split()]
|
||||
|
||||
|
||||
# Application definition
|
||||
|
Loading…
Reference in New Issue
Block a user