mirror of
https://github.com/pinry/pinry.git
synced 2026-05-07 20:46:18 +02:00
Feature: Add pinry-build directory to nginx as default root
This commit is contained in:
committed by
Isaac Bythewood
parent
e2dbf13c8f
commit
45efddae93
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user