mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
- New POST /api/v1/publish endpoint: download image from URL, create post and schedule it per page - New GET /api/v1/pages endpoint: list available pages for external callers - API key auth via X-API-Key header, configurable from admin settings (stored in DB) - New app_config table (migration included) to store the external API key - Admin-only settings section (desktop + mobile) to set/revoke the key - Fallback to EXTERNAL_API_KEY env var if no DB key is configured Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
# Configuration de la base de données PostgreSQL
|
|
PGDATABASE=socialflow
|
|
PGUSER=socialflow
|
|
PGPASSWORD=changeme
|
|
PGPORT=4523
|
|
PGHOST=postgres
|
|
|
|
# URL de connexion complète (générée automatiquement dans Docker)
|
|
DATABASE_URL=postgresql://socialflow:changeme@postgres:4523/socialflow
|
|
|
|
# Configuration de l'application
|
|
PORT=5555
|
|
NODE_ENV=production
|
|
APP_URL=http://localhost:5555
|
|
|
|
# Clé secrète pour les sessions (CHANGEZ CETTE VALEUR)
|
|
SESSION_SECRET=your-secret-key-change-me-to-random-string
|
|
|
|
# Clé de chiffrement pour les tokens Facebook/Instagram (OBLIGATOIRE en production)
|
|
# Générer avec: openssl rand -hex 32
|
|
ENCRYPTION_KEY=your-32-byte-hex-key-here
|
|
|
|
# Clé API OpenRouter pour la génération de texte IA
|
|
# Obtenez votre clé sur https://openrouter.ai/
|
|
OPENROUTER_API_KEY=your-openrouter-api-key-here
|
|
|
|
# Configuration MinIO (stockage des médias, remplace Cloudinary)
|
|
# MINIO_ENDPOINT = URL interne Docker (ex: http://minio:9000)
|
|
# MINIO_PUBLIC_URL = URL publique pour accéder aux fichiers (ex: https://media.example.com)
|
|
MINIO_ENDPOINT=http://minio:9000
|
|
MINIO_PUBLIC_URL=https://media.example.com
|
|
|
|
# Optionnel: Configuration Facebook API
|
|
# FACEBOOK_APP_ID=
|
|
# FACEBOOK_APP_SECRET=
|
|
|
|
# Optionnel: Configuration Instagram API
|
|
# INSTAGRAM_APP_ID=
|
|
# INSTAGRAM_APP_SECRET=
|
|
|
|
# ==========================================
|
|
# API EXTERNE
|
|
# ==========================================
|
|
# Clé d'accès pour l'API externe /api/v1/*
|
|
# Générer avec: openssl rand -hex 32
|
|
EXTERNAL_API_KEY=your-secure-random-key-here
|