Imported toolboxes could run scripts on the site origin through image data URLs, so only bitmap images are now accepted at import, display and opening. The Cards game and its fake admin login no longer turn on when NODE_ENV is missing, and the Node server now sends a CSP and the other security headers. The deployment script no longer runs files owned by the service account as root, the services cannot gain privileges through sudo, and the deployment key stays in a single workflow step with actions pinned by commit. The script and systemd units must still be reinstalled on the server after delivery. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
679 B
Desktop File
14 lines
679 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
|
|
# Empêche le processus et ses enfants d'obtenir des droits supplémentaires, notamment via sudo.
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
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
|