Restrict the Node server to a private address and document the host

The site port answered directly on the VM's public address, bypassing the proxy
and letting clients forge X-Forwarded-For. HOST now limits where it listens. The
Cards database and backups move to /data with owner-only folders, and SERVER.md
describes the Proxmox VMs, ports and open points.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-05 21:32:13 +01:00
parent a32956e49b
commit 5891320e1a
7 changed files with 156 additions and 22 deletions

View file

@ -1,11 +1,11 @@
# Rôle : sauvegarde la base Sokko TCG et garde les 14 dernières copies quotidiennes, seulement si le jeu a déjà une base.
[Unit]
Description=Sokko G Cards database backup
ConditionPathExists=/var/lib/sokko-g/cards/nebula-cards.sqlite
ConditionPathExists=/data/webapps/private/sokko-g/nebula-cards.sqlite
[Service]
Type=oneshot
User=shinuwa
WorkingDirectory=/data/webapps/sites/sokko-g
Environment=NODE_ENV=production
ExecStart=/home/shinuwa/.nvm/versions/node/v24.11.1/bin/node scripts/backup-nebula-cards.mjs scheduled /var/lib/sokko-g/cards/nebula-cards.sqlite /var/backups/sokko-g --keep 14
ExecStart=/home/shinuwa/.nvm/versions/node/v24.11.1/bin/node scripts/backup-nebula-cards.mjs scheduled /data/webapps/private/sokko-g/nebula-cards.sqlite /data/backups/sokko-g --keep 14