nginx: Move /local-static into zulip-include/app.

This functionality dates all of the way back to b78fa0857f78; it is
only dubiously useful.

Keep it, in case someone is using it, but de-duplicate it by moving it
into the "app" include.
This commit is contained in:
Alex Vandiver 2025-11-21 19:21:25 +00:00 committed by Tim Abbott
parent 6c49641af6
commit cf6b573c04
2 changed files with 3 additions and 7 deletions

View File

@ -7,6 +7,9 @@ include /etc/nginx/zulip-include/headers;
error_page 502 503 504 /static/webpack-bundles/5xx.html;
# Serve static files directly
location /local-static {
alias /home/zulip/local-static;
}
location /static/ {
alias /home/zulip/prod-static/;
gzip_static on;

View File

@ -5,9 +5,6 @@ server {
<% else -%>
listen 127.0.0.1:80;
<% end -%>
location /local-static {
alias /home/zulip/local-static;
}
include /etc/nginx/zulip-include/app;
include /etc/nginx/zulip-include/localhost.d/*.conf;
}
@ -45,10 +42,6 @@ server {
ssl_certificate_key <%= @ssl_dir %>/private/zulip.key;
<% end -%>
location /local-static {
alias /home/zulip/local-static;
}
include /etc/nginx/zulip-include/certbot;
include /etc/nginx/zulip-include/app;
}