pahvalentines/.env.example
michael f40726004e feat(safety): add Gemini as alternative image safety classifier
Adds Google Gemini vision API as a configurable alternative to NudeNet
for image safety checks. Controlled via IMAGE_SAFETY_METHOD env var
(default: gemini). Gemini checks for a broader range of unsafe content
including nudity, violence, and offensive material. Fail-open on errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 15:16:51 -06:00

35 lines
996 B
Text

# PAH Backend Environment Variables
# Required - Sonauto API
SONAUTO_API_KEY=your_sonauto_api_key_here
WEBHOOK_BASE_URL=https://your-domain.com
# Optional - Database (defaults shown)
DATABASE_URL=postgresql://pah:pah_password@localhost:5432/pah
# Optional - Redis (defaults shown)
REDIS_URL=redis://localhost:6379/0
CELERY_BROKER_URL=redis://localhost:6379/0
CELERY_RESULT_BACKEND=redis://localhost:6379/0
# Optional - Rate Limiting (defaults shown)
MAX_CONCURRENT_REQUESTS=10
MAX_RETRIES=3
FORM_SUBMIT_RETRY=10
# Optional - Timeouts (defaults shown)
WEBHOOK_TIMEOUT_MINUTES=10
API_REQUEST_TIMEOUT_SECONDS=30
# Optional - Storage (defaults shown)
STORAGE_BASE=../storage
# Optional - Image Safety ("gemini" or "nudenet", default: gemini)
IMAGE_SAFETY_METHOD=gemini
GEMINI_API_KEY=your_gemini_api_key_here
# Optional - Data Retention (defaults shown)
FILE_RETENTION_DAYS=30
# Optional - CORS Origins (comma-separated, defaults shown)
# CORS_ORIGINS=http://localhost,http://localhost:8000