mirror of
https://github.com/Dasemu/si-no-o-indiferente.git
synced 2026-11-26 07:16:19 +00:00
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>
22 lines
602 B
Bash
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
|