@@ -331,7 +331,7 @@ Authorization: Bearer your-token-jwt
331
331
- ** Uvicorn** : ASGI server
332
332
- ** Redis** : Cache and session management
333
333
- ** JWT** : Secure token authentication
334
- - ** SendGrid** : Email service for notifications
334
+ - ** SendGrid/SMTP ** : Email service for notifications (configurable)
335
335
- ** Jinja2** : Template engine for email rendering
336
336
- ** Bcrypt** : Password hashing and security
337
337
- ** LangGraph** : Framework for building stateful, multi-agent workflows
@@ -469,7 +469,9 @@ You'll also need the following accounts/API keys:
469
469
- Python 3.10+
470
470
- PostgreSQL
471
471
- 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)
473
475
474
476
## 🔧 Installation
475
477
@@ -566,11 +568,23 @@ JWT_SECRET_KEY="your-jwt-secret-key"
566
568
JWT_ALGORITHM=" HS256"
567
569
JWT_EXPIRATION_TIME=30 # In seconds
568
570
569
- # SendGrid for emails
571
+ # Email provider configuration
572
+ EMAIL_PROVIDER=" sendgrid" # Options: "sendgrid" or "smtp"
573
+
574
+ # SendGrid (if EMAIL_PROVIDER=sendgrid)
570
575
SENDGRID_API_KEY=" your-sendgrid-api-key"
571
576
EMAIL_FROM=" noreply@yourdomain.com"
572
577
APP_URL=" https://yourdomain.com"
573
578
579
+ # SMTP (if EMAIL_PROVIDER=smtp)
580
+ SMTP_FROM=" noreply-smtp@yourdomain.com"
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
+
574
588
# Encryption for API keys
575
589
ENCRYPTION_KEY=" your-encryption-key"
576
590
```
@@ -787,8 +801,12 @@ The main environment variables used by the API container:
787
801
- ` POSTGRES_CONNECTION_STRING ` : PostgreSQL connection string
788
802
- ` REDIS_HOST ` : Redis host (use "redis" when running with Docker)
789
803
- ` 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
792
810
- ` APP_URL ` : Base URL of the application
793
811
794
812
## 🔒 Secure API Key Management
0 commit comments