Commit 69530a9b by Maxime

Fix access for external hosts

parent 12d97fe8
Pipeline #105 passed with stage
in 34 seconds
......@@ -55,5 +55,5 @@ remove_container "$API_TEST_CONTAINER"
remove_container "$API_CONTAINER"
log_info "Run image"
docker run -d -p 8001:80 -v $LOGS_DIR:/tmp/log --name $API_CONTAINER $API_IMAGE
docker run -d -p 8001:80 -v $LOGS_DIR:/tmp/log:z --name $API_CONTAINER $API_IMAGE
stop_on_error $? "Docker run failed"
......@@ -8,6 +8,7 @@ SECRET_KEY = 'some-secret'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = [ALLOWED_HOSTS_LIST]
# SECURITY WARNING: don't run cors_with origin_allow_all turned on in production!
CORS_ORIGIN_ALLOW_ALL = True
......
#!/bin/bash
sed "s|some-secret|$SECRET_KEY|" logs_viewer/local_settings_example.py | \
sed "s|ALLOWED_HOSTS_LIST|$ALLOWED_HOSTS_LIST|" | \
sed "s|DB_ENGINE|$DB_ENGINE|" | \
sed "s|DB_NAME|$DB_NAME|" | \
sed "s|DB_HOST|$DB_HOST|" | \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment