尝试使用Nginx X-Accel

This commit is contained in:
zema1
2017-12-01 21:53:13 +08:00
parent e21f0c7301
commit b550da5796
3 changed files with 38 additions and 15 deletions

View File

@@ -9,6 +9,11 @@ location /api {
client_max_body_size 200M;
}
location /data/ {
internal;
alias /data/; # note that trailing slash
}
location /admin {
root /app/dist/admin;
try_files $uri $uri/ /index.html =404;
@@ -17,4 +22,4 @@ location /admin {
location / {
root /app/dist;
try_files $uri $uri/ /index.html =404;
}
}