-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
93 lines (78 loc) · 2.38 KB
/
.env.example
File metadata and controls
93 lines (78 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# ===========================================
# Email Agent - Configuration
# ===========================================
# -----------------
# Security
# -----------------
# Méthode recommandée : python3 scripts/generate_keys.py
# Ou manuellement :
# SECRET_KEY avec : openssl rand -hex 32
# ENCRYPTION_KEY avec : python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
SECRET_KEY=changeme_generate_a_secure_random_key_here
ENCRYPTION_KEY=changeme_generate_fernet_key_with_command_above
# -----------------
# Database
# -----------------
DB_PASSWORD=emailagent123
DATABASE_URL=postgresql://emailagent:emailagent123@db:5432/emailagent
# -----------------
# Redis
# -----------------
REDIS_PASSWORD=redis123
# Format: redis://:password@host:port/db
REDIS_URL=redis://:redis123@redis:6379/0
# -----------------
# Ollama LLM
# -----------------
OLLAMA_HOST=http://ollama:11434
OLLAMA_MODEL=mistral
# Autres modèles disponibles : phi3:mini, llama2, codellama
# -----------------
# Application
# -----------------
ENVIRONMENT=production
DEBUG=false
LOG_LEVEL=INFO
# -----------------
# Email Processing
# -----------------
# Intervalle de polling en minutes
EMAIL_POLL_INTERVAL=5
# Mode de fonctionnement : suggest (suggère actions) ou auto (exécute automatiquement)
PROCESSING_MODE=suggest
# Jours avant suppression définitive des emails en quarantaine
QUARANTINE_DAYS=7
# -----------------
# API Settings (optionnel - pour fallback sur Claude API)
# -----------------
# ANTHROPIC_API_KEY=sk-ant-...
# USE_ANTHROPIC_FALLBACK=false
# ANTHROPIC_MODEL=claude-haiku-4-5-20251001
# -----------------
# Admin Account
# -----------------
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=changeme
# -----------------
# Backup
# -----------------
BACKUP_DIR=/var/backups/email-agent
BACKUP_RETENTION_DAYS=30
# -----------------
# Monitoring (optionnel)
# -----------------
# SENTRY_DSN=
# PROMETHEUS_ENABLED=false
# -----------------
# Email Accounts (géré via interface)
# -----------------
# Les comptes email sont configurés via l'interface web
# Cette section est pour référence uniquement
# Gmail OAuth2 (si utilisé)
# GOOGLE_CLIENT_ID=
# GOOGLE_CLIENT_SECRET=
# GOOGLE_REDIRECT_URI=http://localhost:8000/auth/google/callback
# Microsoft OAuth2 (si utilisé)
# MICROSOFT_CLIENT_ID=
# MICROSOFT_CLIENT_SECRET=
# MICROSOFT_REDIRECT_URI=http://localhost:8000/auth/microsoft/callback