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>
21 lines
694 B
Desktop File
21 lines
694 B
Desktop File
# Rôle : exécute le serveur de production Sokko G avec la version Node fixée par le projet.
|
|
[Unit]
|
|
Description=Sokko G WebApp
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
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
|
|
Environment=PATH=/home/shinuwa/.nvm/versions/node/v24.11.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
EnvironmentFile=-/etc/sokko-g/cards.env
|
|
ExecStart=/home/shinuwa/.nvm/versions/node/v24.11.1/bin/npm start
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|