add redis to env files in project and coolugy
This commit is contained in:
@@ -159,13 +159,13 @@ SWAGGER_SETTINGS = {
|
||||
"DEFAULT_AUTO_SCHEMA_CLASS": "drf_yasg.inspectors.SwaggerAutoSchema"
|
||||
}
|
||||
|
||||
CELERY_BROKER_URL = "redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0" # Requires Redis server
|
||||
CELERY_BROKER_URL = os.environ.get("CELERY_BROKER_URL")
|
||||
accept_content = ["application/json"]
|
||||
result_serializer = "json"
|
||||
task_serializer = "json"
|
||||
timezone = "UTC"
|
||||
CELERY_RESULT_BACKEND = "redis://:ydnW4hwzuDRYcTX3FWCHgQ1f@apo.liara.cloud:33740/0"
|
||||
CELERY_CACHE_BACKEND = 'default'
|
||||
CELERY_RESULT_BACKEND = os.environ.get("CELERY_RESULT_BACKEND")
|
||||
CELERY_CACHE_BACKEND = os.environ.get("CELERY_CACHE_BACKEND")
|
||||
|
||||
# Celery Beat settings
|
||||
CELERY_BEAT_SCHEDULER = "django_celery_beat.schedulers:DatabaseScheduler"
|
||||
@@ -341,17 +341,7 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = 50242880
|
||||
CORS_ORIGIN_ALLOW_ALL = False
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
|
||||
CORS_ALLOWED_ORIGINS = (
|
||||
'http://localhost:8080',
|
||||
'http://127.0.0.1:8080',
|
||||
'http://127.0.0.1:3000',
|
||||
'http://localhost:3000',
|
||||
'http://192.168.88.130:3000',
|
||||
'https://rasadyar.net',
|
||||
'https://rasaddam-front.liara.run',
|
||||
'https://dam.rasadyar.net',
|
||||
'http://ns0ck4ksk0koks8ksw0ss08g.31.7.78.133.sslip.io' # noqa
|
||||
)
|
||||
CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS").split(",")
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
SECURE_SSL_REDIRECT = False
|
||||
|
||||
Reference in New Issue
Block a user