Apply production fixes + docs

- Updates docker-compose database volume name
- Fixes CORS frontend URL issue in django settings
- Adds addtional docs to the production setup
This commit is contained in:
Dana Lambert 2021-12-10 13:17:37 +13:00
parent 23e05ce20e
commit 490d6fba80
3 changed files with 15 additions and 6 deletions

View file

@ -139,8 +139,11 @@ STATIC_ROOT = os.path.join(PROJECT_DIR, 'staticfiles')
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
frontend_url = os.getenv('FRONTEND_BASE_URL', 'localhost:3000')
CORS_ALLOWED_ORIGINS = [
os.getenv("FRONTEND_BASE_URL") or 'http://localhost:3000'
f"https://{frontend_url}",
f"http://{frontend_url}"
]
CORS_ALLOW_HEADERS = [