From e2e0c72a80183b0aa0556348ba15d0b26de0a8bf Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 4 Apr 2025 10:34:15 -0400 Subject: [PATCH] nginx: Serve full app from localhost. Some deployments choose to wrap Zulip's nginx in an outer proxy -- for example, to do custom TLS termination. In such deployments, the outer proxy is routing to `127.0.0.1:80`; b4fb22ba1bef breaks these configurations, as it switches the `127.0.0.1:80` listener to only serving `/api/internal/` paths. Switch to serving the whole application over `127.0.0.1:80`. --- puppet/zulip/templates/nginx/zulip-enterprise.template.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/puppet/zulip/templates/nginx/zulip-enterprise.template.erb b/puppet/zulip/templates/nginx/zulip-enterprise.template.erb index 91c098380f..af4a7feb55 100644 --- a/puppet/zulip/templates/nginx/zulip-enterprise.template.erb +++ b/puppet/zulip/templates/nginx/zulip-enterprise.template.erb @@ -5,10 +5,10 @@ server { <% else -%> listen 127.0.0.1:80; <% end -%> - location /api/internal/ { - include /etc/nginx/zulip-include/api_headers; - include uwsgi_params; + location /local-static { + alias /home/zulip/local-static; } + include /etc/nginx/zulip-include/app; include /etc/nginx/zulip-include/localhost.d/*.conf; }