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`; b4fb22ba1b 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`.
This commit is contained in:
Alex Vandiver
2025-04-04 10:34:15 -04:00
committed by Tim Abbott
parent c95dd65d75
commit e2e0c72a80

View File

@@ -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;
}