Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Only set X-Real-IP once.

Alex Vandiver795517bd5296
diff --git a/puppet/zulip/files/nginx/zulip-include-frontend/app b/puppet/zulip/files/nginx/zulip-include-frontend/app
index 9717be02ef2..0f4dff48350 100644
--- a/puppet/zulip/files/nginx/zulip-include-frontend/app
+++ b/puppet/zulip/files/nginx/zulip-include-frontend/app
@@ -31,8 +31,6 @@ location /static/webpack-bundles/ {
location /json/events {
proxy_pass $tornado_server;
include /etc/nginx/zulip-include/proxy_longpolling;
-
- proxy_set_header X-Real-IP $remote_addr;
}
# Send longpoll requests to Tornado
@@ -45,8 +43,6 @@ location /api/v1/events {
proxy_pass $tornado_server;
include /etc/nginx/zulip-include/proxy_longpolling;
-
- proxy_set_header X-Real-IP $remote_addr;
}
# Send everything else to Django via uWSGI