deploy(nginx): route /assets/product-center/ to v2 api for shared icons; ignore backups/
This commit is contained in:
+1
-1
@@ -10,4 +10,4 @@ deploy/data-dump.json
|
|||||||
uploads/
|
uploads/
|
||||||
.pnpm-store/
|
.pnpm-store/
|
||||||
data-cleaning/
|
data-cleaning/
|
||||||
backups/.zcode/
|
backups/
|
||||||
|
|||||||
@@ -98,6 +98,13 @@ server {
|
|||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Product-center icons maintained in the v2 repo — serve from the v2 api
|
||||||
|
# (more specific prefix than /assets/, so it takes precedence)
|
||||||
|
location /assets/product-center/ {
|
||||||
|
proxy_pass http://v2-api:3001/assets/product-center/;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
# Website placeholder until the public site is deployed
|
# Website placeholder until the public site is deployed
|
||||||
location / {
|
location / {
|
||||||
return 302 /admin/;
|
return 302 /admin/;
|
||||||
|
|||||||
Reference in New Issue
Block a user