mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 08:34:55 +00:00
@ -56,7 +56,14 @@ if ENV in ['dev', 'qa', 'stage']:
|
|||||||
# Add more trusted origins as needed
|
# Add more trusted origins as needed
|
||||||
]
|
]
|
||||||
if ENV == "prod":
|
if ENV == "prod":
|
||||||
CORS_ALLOWED_ORIGINS = []
|
CORS_ALLOWED_ORIGINS = [
|
||||||
|
# backend base url
|
||||||
|
"https://prod-api.zodqaapp.com/",
|
||||||
|
|
||||||
|
# frontend url
|
||||||
|
"https://zod-prod.zodqaapp.com/",
|
||||||
|
# Add more trusted origins as needed
|
||||||
|
]
|
||||||
|
|
||||||
# allow all host
|
# allow all host
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
@ -141,6 +148,7 @@ SIMPLE_JWT = {
|
|||||||
'REFRESH_TOKEN_LIFETIME': timedelta(hours=71, minutes=59, seconds=59, microseconds=999999),
|
'REFRESH_TOKEN_LIFETIME': timedelta(hours=71, minutes=59, seconds=59, microseconds=999999),
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
|
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
|||||||
Reference in New Issue
Block a user