mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
[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:
@@ -19,6 +19,9 @@ SECRET_KEY = None
|
|||||||
# See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
# See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
||||||
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
|
# Ansible base virtualenv paths and enablement
|
||||||
# only used for deprecated fields and management commands for them
|
# only used for deprecated fields and management commands for them
|
||||||
BASE_VENV_PATH = os.path.realpath("/var/lib/awx/venv")
|
BASE_VENV_PATH = os.path.realpath("/var/lib/awx/venv")
|
||||||
|
|||||||
Reference in New Issue
Block a user