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

32 lines
998 B
Plaintext

# Example nginx virtual host for the Debian LXC.
# Serves the frontend (static Vite build) and reverse-proxies /api to the
# Node backend running on localhost:8787 via the story-api systemd service.
#
# Copy it to /etc/nginx/sites-available/historias, adjust the domain and
# path, then:
# ln -s /etc/nginx/sites-available/historias /etc/nginx/sites-enabled/historias
# nginx -t && systemctl reload nginx
# For TLS with Let's Encrypt: certbot --nginx -d your-domain.example
server {
listen 80;
listen [::]:80;
server_name your-domain.example;
root /opt/historias/frontend/dist;
index index.html;
location /api/ {
proxy_pass http://127.0.0.1:8787/api/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
try_files $uri /index.html;
}
}