Settings

PushCaster configuration and operations

A

Environment Variables

Required variables for .env.local and infra/.env

NOVU_API_URL

Novu API base URL

http://localhost:3000
NOVU_API_KEY

Novu API secret key

••••••••••••••••
NOVU_SECRET_KEY

Internal Novu secret

<openssl rand -hex 16>
JWT_SECRET

JWT signing secret

<openssl rand -hex 16>
MONGO_URL

MongoDB connection string

mongodb://mongodb:27017/novu
REDIS_HOST

Redis hostname

redis

Never 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()'