test x forwareded host

This commit is contained in:
Parsa Nazer
2025-04-15 22:03:11 +03:30
parent f7e80d173e
commit aa12540eb7
+8 -1
View File
@@ -69,4 +69,11 @@ CELERY_BEAT_SCHEDULE = {
'task': 'order.tasks.udpate_bank_status',
'schedule': crontab(minute='*'),
},
}
}
# ==============================================================================
# to avoid gateway post problem
# ==============================================================================
USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')