mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
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:
committed by
Tim Abbott
parent
c95dd65d75
commit
e2e0c72a80
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user