The nginx configuration was set to pass X-Forwarded-For and related headers unodified to backend services. This works fine when nginx is deployed behind another load balancer (for example ELB), which already properly sets the X-Forwarded-* for headers. But in simpler deployment scenarios, where nginx is directly facing the end user, nginx should discard any existing X-Forwarded-For headr and set it to remote IP of the request, the X-Forwarded-Port header to the nginx server port, and the X-Forwarded-Proto to the scheme of the current request. The 'NGINX_SET_X_FORWARDED_HEADERS' is set to False by default, but set to True in the edx_sandbox playbook, where an additional load balancer in front of nginx is not usually present.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
aide | Loading commit data... | |
alton | Loading commit data... | |
analytics | Loading commit data... | |
analytics-server | Loading commit data... | |
ansible-role | Loading commit data... | |
ansible_debug | Loading commit data... | |
apache | Loading commit data... | |
aws | Loading commit data... | |
bastion | Loading commit data... | |
browsers | Loading commit data... | |
certs | Loading commit data... | |
common | Loading commit data... | |
datadog | Loading commit data... | |
demo | Loading commit data... | |
devpi | Loading commit data... | |
discern | Loading commit data... | |
edx_ansible | Loading commit data... | |
edx_service | Loading commit data... | |
edxapp | Loading commit data... | |
edxlocal | Loading commit data... | |
elasticsearch | Loading commit data... | |
flower | Loading commit data... | |
forum | Loading commit data... | |
gerrit | Loading commit data... | |
gh_mirror | Loading commit data... | |
gluster | Loading commit data... | |
haproxy | Loading commit data... | |
in_production/tasks | Loading commit data... | |
jenkins_admin | Loading commit data... | |
jenkins_master | Loading commit data... | |
jenkins_worker | Loading commit data... | |
kibana | Loading commit data... | |
launch_ec2/tasks | Loading commit data... | |
legacy_ora/tasks | Loading commit data... | |
local_dev | Loading commit data... | |
logstash | Loading commit data... | |
mongo | Loading commit data... | |
newrelic | Loading commit data... | |
nginx | Loading commit data... | |
nltk | Loading commit data... | |
notifier | Loading commit data... | |
ora | Loading commit data... | |
oraclejdk | Loading commit data... | |
rabbitmq | Loading commit data... | |
rbenv | Loading commit data... | |
redis | Loading commit data... | |
s3fs | Loading commit data... | |
shibboleth | Loading commit data... | |
snort | Loading commit data... | |
splunkforwarder | Loading commit data... | |
stop_all_edx_services | Loading commit data... | |
supervisor | Loading commit data... | |
user | Loading commit data... | |
xqueue | Loading commit data... | |
xqwatcher | Loading commit data... | |
xserver | Loading commit data... |