OnlineJudge/deploy/nginx/common.conf
virusdefender 1bf4973648 fix deploy issues
- make supervisorctl happy
 - fix avatar path
 - refine logging config
 - add nginx buffer path
2017-11-26 10:43:14 +08:00

20 lines
369 B
Plaintext

location /public {
root /data;
}
location /api {
proxy_pass http://backend;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
client_max_body_size 200M;
}
location /admin {
root /app/dist/admin;
try_files $uri $uri/ /index.html =404;
}
location / {
root /app/dist;
try_files $uri $uri/ /index.html =404;
}