Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

Commit e422c20

Browse files
authored
[nginx] simplify the root specification for sendfile (#121)
Signed-off-by: Jakob Ackermann <[email protected]>
1 parent 5e0f94f commit e422c20

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nginx/sharelatex.conf

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server {
22
listen 80;
33
server_name _; # Catch all, see http://nginx.org/en/docs/http/server_names.html
44

5-
set $static_path /var/www/sharelatex/web/public;
5+
root /var/www/sharelatex/web/public/;
66

77
location / {
88
proxy_pass http://127.0.0.1:3000;
@@ -14,7 +14,7 @@ server {
1414
proxy_read_timeout 3m;
1515
proxy_send_timeout 3m;
1616
}
17-
17+
1818
location /socket.io {
1919
proxy_pass http://127.0.0.1:3026;
2020
proxy_http_version 1.1;
@@ -29,16 +29,13 @@ server {
2929

3030
location /stylesheets {
3131
expires 1y;
32-
root $static_path/;
3332
}
3433

3534
location /minjs {
3635
expires 1y;
37-
root $static_path/;
3836
}
3937

4038
location /img {
4139
expires 1y;
42-
root $static_path/;
4340
}
4441
}

0 commit comments

Comments
 (0)