Feature: Add pinry-build directory to nginx as default root

This commit is contained in:
winkidney
2019-12-08 01:29:17 +08:00
committed by Isaac Bythewood
parent e2dbf13c8f
commit 45efddae93

View File

@@ -17,10 +17,16 @@ server {
access_log off;
}
location / {
location /api {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://localhost:8000;
break;
}
location / {
root /app/pinry-spa/dist/;
access_log off;
}
}