Files
dasemu 99a903f6e1 Add player difficulty ratings, drop hint system, use Peninsular Spanish in Gemini prompt
Players can now submit a voluntary 1-5 difficulty rating after a story
ends (POST /api/stories/:id/ratings), stored in data/ratings.json. A new
reclassifyDifficulty script (wired to a weekly systemd timer) averages
those ratings and adjusts a story's difficulty band once it has enough
votes. The progressive hint system is removed end-to-end (schema, Gemini
prompt/response schema, generation instructions), and the Gemini prompt
is rewritten in Peninsular Spanish with an explicit instruction to
generate story content in Spain Spanish rather than any LatAm variant.
Also translates remaining Spanish code comments/error strings to English
and updates the backend README and systemd units accordingly.
2026-08-24 04:53:12 +02:00

23 lines
488 B
Desktop File

[Unit]
Description=Sí, no, o indiferente API
After=network.target
[Service]
Type=simple
User=historias
Group=historias
WorkingDirectory=/opt/historias/backend
EnvironmentFile=/opt/historias/backend/.env
ExecStart=/usr/bin/node /opt/historias/backend/dist/index.js
Restart=on-failure
RestartSec=5
# Basic systemd sandbox hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/historias/backend/data
PrivateTmp=true
[Install]
WantedBy=multi-user.target