[Devel] Added HTTP_X_FORWARDED_FOR in Devel for production (#16314)

Added HTTP_X_FORWARDED_FOR in Devel for production
This commit is contained in:
Stevenson Michel
2026-03-03 17:08:38 -05:00
committed by GitHub
parent d1f4fc3e97
commit 7a5f0998d2

View File

@@ -19,6 +19,9 @@ SECRET_KEY = None
# See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []
# In production, trust the X-Forwarded-For header set by the reverse proxy
REMOTE_HOST_HEADERS = ['HTTP_X_FORWARDED_FOR']
# Ansible base virtualenv paths and enablement
# only used for deprecated fields and management commands for them
BASE_VENV_PATH = os.path.realpath("/var/lib/awx/venv")