mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 17:48:10 -03:30
Update settings.py
This is needed for LB (e.g., traefik) for proxying into nginx otherwise, get CSRF error ref: https://stackoverflow.com/questions/27533011/django-csrf-error-casused-by-nginx-x-forwarded-host resolved by adding USE_X_FORWARDED_HOST using the following similar issue as a reference: https://github.com/catmaid/CATMAID/issues/1781
This commit is contained in:
@@ -85,4 +85,5 @@ DATABASES = {
|
||||
if os.getenv("DATABASE_SSLMODE", False):
|
||||
DATABASES['default']['OPTIONS'] = {'sslmode': os.getenv("DATABASE_SSLMODE")}
|
||||
|
||||
USE_X_FORWARDED_HOST = True
|
||||
USE_X_FORWARDED_PORT = True
|
||||
|
||||
Reference in New Issue
Block a user