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.
27 lines
969 B
Plaintext
27 lines
969 B
Plaintext
# 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 {
|
|
listen 80;
|
|
server_name gallery.mysuperlab.netcraze.pro;
|
|
|
|
client_max_body_size 20M;
|
|
|
|
location / {
|
|
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;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_read_timeout 120s;
|
|
}
|
|
}
|