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:
parent
23e05ce20e
commit
490d6fba80
3 changed files with 15 additions and 6 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue