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>
23 lines
500 B
Desktop File
23 lines
500 B
Desktop File
[Unit]
|
|
Description=API de Historias Incompletas
|
|
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
|
|
# Endurecimiento basico del sandbox systemd
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/opt/historias/backend/data
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|