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>
11 lines
544 B
Desktop File
11 lines
544 B
Desktop File
# 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=/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 /data/webapps/private/sokko-g/nebula-cards.sqlite /data/backups/sokko-g --keep 14
|