[nginx] simplify the root specification for sendfile (#121)

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
Jakob Ackermann 2020-02-13 11:59:20 +01:00 committed by GitHub
parent 5e0f94f404
commit e422c20e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@ server {
listen 80; listen 80;
server_name _; # Catch all, see http://nginx.org/en/docs/http/server_names.html server_name _; # Catch all, see http://nginx.org/en/docs/http/server_names.html
set $static_path /var/www/sharelatex/web/public; root /var/www/sharelatex/web/public/;
location / { location / {
proxy_pass http://127.0.0.1:3000; proxy_pass http://127.0.0.1:3000;
@ -29,16 +29,13 @@ server {
location /stylesheets { location /stylesheets {
expires 1y; expires 1y;
root $static_path/;
} }
location /minjs { location /minjs {
expires 1y; expires 1y;
root $static_path/;
} }
location /img { location /img {
expires 1y; expires 1y;
root $static_path/;
} }
} }