🎨 img.tru.ar — Generador IA

Versión v1.0.0 · Generado: 2026-06-26 13:14:02 · https://img.tru.ar

Generador multi-modelo de imágenes IA usando fal.ai: Flux, Imagen 4, Veo, Kling, etc. Cola async + galería + Google Drive sync.

📝 Cambios de esta versión:
[Snapshot maestro semanal]
🔐 CONFIDENCIAL. Este documento contiene credenciales. NO compartir. Si tu Gmail se compromete, rotar todas las claves listadas.

📋 Overview

Stack

FrameworkPython con servidor HTTP propio
Path/home/ubuntu/img_generator
Puerto8767
Vhost/etc/nginx/sites-available/img-tru
Serviceimg-generator.service
Imágenes/home/ubuntu/img_generator/imagenes/ (storage local)
Drive syncVía service account drive_sa.json

🔌 APIs

fal.ai (motor principal)

API key (user)15723bed-9877-48a4-b1bb-3430ecd57b67:7743afb44a59778519564b14d747ea9d
API key (admin)de728caf-6ce8-4f8a-986a-d9d887a0949f:e4536e72af3afb570db11a4b3d508bee
ModelosFlux, Imagen 4, Veo, Kling, nano-banana-pro

Google Drive

Folder ID1Xwywo5iHjR61CYjxpq20ED1clpmhwMBF
AuthService account → /home/ubuntu/img_generator/drive_sa.json

⚙️ Servicio systemd

img-generator.service

[Unit]
Description=img.tru.ar Generador de Imagenes IA
After=network.target

[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu/img_generator
ExecStart=/usr/bin/python3 /home/ubuntu/img_generator/consola_img.py
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

🛠️ Comandos

Restart

sudo systemctl restart img-generator
sudo systemctl status img-generator --no-pager

Logs

sudo journalctl -u img-generator -n 100 --no-pager

Bump

sudo /opt/backup-system/bump.sh img-tru patch "Descripción"