Feature: Add admin site to default nginx conf

This commit is contained in:
winkidney
2020-04-24 16:16:18 +08:00
parent 943e5885d2
commit a562d69dfc

View File

@@ -21,6 +21,14 @@ server {
break; break;
} }
location /admin {
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 / { location / {
root /pinry/pinry-spa/dist/; root /pinry/pinry-spa/dist/;
access_log off; access_log off;