Split PostgreSQL into gallery_dev and gallery_prod, add Docker/Gitea deploy tooling, SMB image sync, pgAdmin split script, dev:web on Keenetic :5173, and operator docs. Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
# LEGACY — optional nginx on dev PC. Production uses TrueNAS Docker on :5173
|
|
# (see Documentation/environments.md and infra/docker/DEPLOY-truenas.md).
|
|
#
|
|
# Reverse proxy for gallery.mysuperlab.netcraze.pro → Vite dev client on :5173.
|
|
# Vite proxies /api and /images to the Node API on :3451 (dev:web) or :3520 (legacy local dev).
|
|
#
|
|
# 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;
|
|
}
|
|
}
|