@@ -331,7 +331,7 @@ Authorization: Bearer your-token-jwt
331331- ** Uvicorn** : ASGI server
332332- ** Redis** : Cache and session management
333333- ** JWT** : Secure token authentication
334- - ** SendGrid** : Email service for notifications
334+ - ** SendGrid/SMTP ** : Email service for notifications (configurable)
335335- ** Jinja2** : Template engine for email rendering
336336- ** Bcrypt** : Password hashing and security
337337- ** LangGraph** : Framework for building stateful, multi-agent workflows
@@ -469,7 +469,9 @@ You'll also need the following accounts/API keys:
469469- Python 3.10+
470470- PostgreSQL
471471- Redis
472- - SendGrid Account (for email sending)
472+ - Email provider:
473+ - SendGrid Account (if using SendGrid email provider)
474+ - SMTP Server (if using SMTP email provider)
473475
474476## 🔧 Installation
475477
@@ -566,11 +568,23 @@ JWT_SECRET_KEY="your-jwt-secret-key"
566568JWT_ALGORITHM=" HS256"
567569JWT_EXPIRATION_TIME=30 # In seconds
568570
569- # SendGrid for emails
571+ # Email provider configuration
572+ EMAIL_PROVIDER=" sendgrid" # Options: "sendgrid" or "smtp"
573+
574+ # SendGrid (if EMAIL_PROVIDER=sendgrid)
570575SENDGRID_API_KEY=" your-sendgrid-api-key"
571576572577APP_URL=" https://yourdomain.com"
573578
579+ # SMTP (if EMAIL_PROVIDER=smtp)
580+ 581+ SMTP_USER=" your-smtp-username"
582+ SMTP_PASSWORD=" your-smtp-password"
583+ SMTP_HOST=" your-smtp-host"
584+ SMTP_PORT=587
585+ SMTP_USE_TLS=true
586+ SMTP_USE_SSL=false
587+
574588# Encryption for API keys
575589ENCRYPTION_KEY=" your-encryption-key"
576590```
@@ -787,8 +801,12 @@ The main environment variables used by the API container:
787801- ` POSTGRES_CONNECTION_STRING ` : PostgreSQL connection string
788802- ` REDIS_HOST ` : Redis host (use "redis" when running with Docker)
789803- ` JWT_SECRET_KEY ` : Secret key for JWT token generation
790- - ` SENDGRID_API_KEY ` : SendGrid API key for sending emails
791- - ` EMAIL_FROM ` : Email used as sender
804+ - ` EMAIL_PROVIDER ` : Email provider to use ("sendgrid" or "smtp")
805+ - ` SENDGRID_API_KEY ` : SendGrid API key (if using SendGrid)
806+ - ` EMAIL_FROM ` : Email used as sender (for SendGrid)
807+ - ` SMTP_FROM ` : Email used as sender (for SMTP)
808+ - ` SMTP_HOST ` , ` SMTP_PORT ` , ` SMTP_USER ` , ` SMTP_PASSWORD ` : SMTP server configuration
809+ - ` SMTP_USE_TLS ` , ` SMTP_USE_SSL ` : SMTP security settings
792810- ` APP_URL ` : Base URL of the application
793811
794812## 🔒 Secure API Key Management
0 commit comments