mirror of
https://github.com/zulip/zulip.git
synced 2026-06-27 21:01:32 +08:00
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:
parent
6c49641af6
commit
cf6b573c04
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user