Settings
PushCaster configuration and operations
A
Environment Variables
Required variables for .env.local and infra/.env
NOVU_API_URLNovu API base URL
http://localhost:3000NOVU_API_KEYNovu API secret key
••••••••••••••••NOVU_SECRET_KEYInternal Novu secret
<openssl rand -hex 16>JWT_SECRETJWT signing secret
<openssl rand -hex 16>MONGO_URLMongoDB connection string
mongodb://mongodb:27017/novuREDIS_HOSTRedis hostname
redisNever commit .env files to version control. Store production secrets in AWS Secrets Manager.
Security Checklist
VPS firewall: only ports 22, 80, 443 exposed
Novu API key stored in AWS Secrets Manager
APNs .p8 key encrypted and mounted as Docker secret
MongoDB authentication enabled in production
Novu web dashboard disabled after initial config
SMS Java modem endpoint requires API key
Evolution API key rotation scheduled
MongoDB volume backed up to S3 daily
Maintenance Commands
Update Novu
Pull latest images and restart containers
cd /opt/novu && git pull && docker compose pull && docker compose up -d
Check container health
View running Novu services
docker compose ps
View API logs
Stream Novu API container logs
docker compose logs -f novu-api
MongoDB stats
Get database storage information
docker exec -it mongodb mongosh --eval 'db.stats()'