Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
nginx: Limit access to internal endpoints, to localhost.
Alex Vandiverc34913b4d70c
diff --git a/puppet/zulip/files/nginx/zulip-include-frontend/app b/puppet/zulip/files/nginx/zulip-include-frontend/appindex a4fceb202e0..7cc66110280 100644--- a/puppet/zulip/files/nginx/zulip-include-frontend/app+++ b/puppet/zulip/files/nginx/zulip-include-frontend/app@@ -102,6 +102,16 @@ location /user_uploads {include uwsgi_params;}+location /api/internal/ {+ # These only need be accessed from localhost+ allow 127.0.0.1;+ allow ::1;+ deny all;++ include /etc/nginx/zulip-include/api_headers;+ include uwsgi_params;+}+# Send all API routes not covered above to Django via uWSGIlocation /api/ {include /etc/nginx/zulip-include/api_headers;