Add seed scripts, proxy Vite on public domain, and seed painting images.
Restore seed-wikipedia.js and seed-catalog-data.js so npm run setup works on a fresh clone. Point nginx at the Vite dev client and allow the public hostname in Vite config.
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
# Reverse proxy for gallery.mysuperlab.netcraze.pro → Node on port 3520.
|
||||
# Reverse proxy for gallery.mysuperlab.netcraze.pro → Vite dev client on :5173.
|
||||
# Vite proxies /api and /images to the Node API on :3520 (see client/vite.config.ts).
|
||||
#
|
||||
# Dev stack: npm run dev:server && npm run dev:client
|
||||
# Production (built SPA on Node only): point location / at http://127.0.0.1:3520 instead.
|
||||
#
|
||||
# Install: copy to /etc/nginx/sites-available/gallery, symlink sites-enabled, nginx -t && systemctl reload nginx
|
||||
|
||||
server {
|
||||
@@ -8,8 +13,10 @@ server {
|
||||
client_max_body_size 20M;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3520;
|
||||
proxy_pass http://127.0.0.1:5173;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user