diff --git a/backend/config/settings/production.py b/backend/config/settings/production.py index b5709ef..87fb8e9 100644 --- a/backend/config/settings/production.py +++ b/backend/config/settings/production.py @@ -24,7 +24,7 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" ALLOWED_HOSTS = ["django", env("NAPSE_API_DOMAIN")] -print(ALLOWED_HOSTS) +print("ALLOWED_HOSTS", ALLOWED_HOSTS) @receiver(connection_created) diff --git a/backend/deploy/aws/.platform/hooks/prebuild/setup_env_variables.sh b/backend/deploy/aws/.platform/hooks/prebuild/setup_env_variables.sh index 9dc33db..a4d0eed 100644 --- a/backend/deploy/aws/.platform/hooks/prebuild/setup_env_variables.sh +++ b/backend/deploy/aws/.platform/hooks/prebuild/setup_env_variables.sh @@ -1,4 +1,5 @@ #!/bin/bash eval $(/opt/elasticbeanstalk/bin/get-config environment | jq -r 'to_entries[] | "\(.key)=\(.value)"') -/opt/elasticbeanstalk/bin/get-config environment \ No newline at end of file +/opt/elasticbeanstalk/bin/get-config environment +export NAPSE_API_DOMAIN=napse-env.eba-vm2tsihk.eu-west-3.elasticbeanstalk.com diff --git a/backend/docker/production.yml b/backend/docker/production.yml index df8041e..d126830 100644 --- a/backend/docker/production.yml +++ b/backend/docker/production.yml @@ -30,6 +30,7 @@ services: - AWS_ACCESS_KEY_ID - AWS_SECRET_ACCESS_KEY - AWS_S3_BUCKET_URI + - NAPSE_API_DOMAIN volumes: - db_volume:/app/db @@ -61,7 +62,7 @@ services: image: "traefik:v2.9.5" container_name: napse_dtk_prod_traefik command: - - "--log.level=DEBUG" + - "--log.level=INFO" - "--api.insecure=true" - "--providers.docker=true" - "--providers.docker.exposedbydefault=false"