Generate and manage credentials and secrets across WEAM services with Python or online tools.
1. Project Secrets and Token Keys
Variable | Purpose | Python Code | Online Source |
---|---|---|---|
JWT_SECRET | Signs access tokens | secrets.token_urlsafe(64) | RandomKeyGen |
JWT_REFRESH_SECRET | Signs refresh tokens | secrets.token_urlsafe(64) | RandomKeyGen |
SECURITY_KEY | AES key (16/24/32 bytes) | secrets.token_urlsafe(16) | Encryption Keys |
CSRF_TOKEN_SECRET | CSRF protection | secrets.token_urlsafe(32) | Security Tokens |
NEXT_PUBLIC_COOKIE_PASSWORD | Cookie encryption | secrets.token_urlsafe(32) | RandomKeyGen |
2. MongoDB Credentials
Variable | Purpose | Generator |
---|---|---|
MONOGODB_URI | DB connection URI | mongodb://username:password@host:27017/dbname |
MONGO_INITDB_ROOT_USERNAME | DB root username | Set manually or use Atlas UI |
MONGO_INITDB_ROOT_PASSWORD | DB root password | Password Generator |
3. MinIO / AWS S3-Compatible Storage
Variable | Purpose | How to Generate |
---|---|---|
AWS_ACCESS_KEY_ID | Access Key | MinIO Console / AWS IAM |
AWS_SECRET_ACCESS_KEY | Secret Key | MinIO Docs |
AWS_BUCKET | Bucket Name | Choose your bucket name (e.g., weam-frontend-media ) |
4. Email Provider Credentials (SMTP / SES)
Variable | Description | How to Generate |
---|---|---|
SMTP_USER | Email or username | Gmail/Zoho/SendGrid login |
SMTP_PASSWORD | App password/token | Gmail App Passwords |
SMTP_SERVER | SMTP host | e.g., smtp.gmail.com |
SMTP_PORT | SMTP port | TLS: 587 , SSL: 465 |
SENDER_EMAIL | Email sender name | e.g., Weam <you@example.com> |
5. Celery Redis Configuration
Variable | Purpose | Example URI |
---|---|---|
CELERY_BROKEN_URL | Redis broker | redis://redis:6379/7 |
CELERY_RESULT_BACKEND | Task result backend | redis://redis:6379/7 |
6. SEO API Credentials
Variable | Description | Source |
---|---|---|
SEO_USER_ID | Email for SEO login | DataForSEO |
SEO_PASSWORD | Password or token for API access | Dashboard → API Credentials |
7. Dev Tools (Debugger - WDB)
Variable | Description | Default |
---|---|---|
WDB_SOCKET_SERVER | Debugger socket server | wdb |
WDB_PORT | Debugger port | 1984 |
WDB_NO_BROWSER_AUTO_OPEN | Disable browser auto-launch | 1 |