Files
si-no-o-indiferente/backend/.env.example
T
dasemuandClaude Sonnet 5 7f3e6cc839 Add Historias Incompletas: web+APK story game with Gemini-powered daily deck
Node/Express backend generates 5 lateral-thinking mystery stories a day via
Gemini and serves the latest batch; React/Vite frontend (Capacitor-wrapped
for Android) plays them pass-and-play style, falling back to a bundled set
of 16 original stories when the backend has nothing new or is unreachable.
Includes systemd/nginx deploy config for a Docker-less Debian LXC.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 07:15:54 +00:00

22 lines
602 B
Bash

# Puerto donde escucha la API
PORT=8787
# Origen permitido para CORS (la URL desde donde se sirve el frontend/PWA).
# Usa "*" solo en desarrollo.
CORS_ORIGIN=*
# API key de Google Gemini (https://aistudio.google.com/apikey)
GEMINI_API_KEY=
# Modelo de Gemini a usar para generar historias
GEMINI_MODEL=gemini-2.5-flash
# Cuantas historias nuevas generar por dia
STORIES_PER_DAY=5
# Carpeta donde se guardan las historias generadas (JSON), relativa al backend
DATA_DIR=./data
# Token secreto para poder disparar la generacion manualmente via POST /api/admin/generate
ADMIN_TOKEN=cambia-este-token