OnlineJudge/deploy/nginx/common.conf

26 lines
450 B
Plaintext
Raw Normal View History

2017-11-25 04:30:00 +00:00
location /public {
root /data;
2017-11-25 04:30:00 +00:00
}
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;
}
2017-12-01 13:53:13 +00:00
location /data/ {
internal;
alias /data/; # note that trailing slash
}
2017-11-25 04:30:00 +00:00
location /admin {
root /app/dist/admin;
try_files $uri $uri/ /index.html =404;
}
location / {
root /app/dist;
try_files $uri $uri/ /index.html =404;
2017-12-01 13:53:13 +00:00
}