# Secrets # YOU MUST CHANGE THESE BEFORE GOING INTO PRODUCTION # used as a secret to verify the JWT token signature # REQUIRED: Generate a cryptographically random value before starting. # Example: openssl rand -hex 32 JWT_SECRET= # expressed in seconds or a string describing a time span [zeit/ms](https://github.com/zeit/ms.js). Eg: 60, "2 days", "10h", "7d" SUBSCRIBER_WIDGET_JWT_EXPIRATION_TIME=15d # OPTIONAL: keys that sign Novu tokens, such as subscriber login tokens. Leave empty and the API # derives one from JWT_SECRET, so changing JWT_SECRET also changes this key, and anyone holding # JWT_SECRET can sign these tokens. To use your own keys instead, list base64-encoded P-256 private # keys, separated by commas. The first key signs, every key verifies. Changes apply on restart. # Generate one with: openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 | base64 | tr -d '\n' # To rotate from key A to key B, deploy each step to every API instance before the next: # 1. A,B 2. B,A 3. B, once tokens signed with A have expired (one hour) NOVU_TOKEN_SIGNING_KEYS= # used to encrypt/decrypt the provider credentials # REQUIRED: Must be exactly 32 characters. Generate with: openssl rand -hex 16 STORE_ENCRYPTION_KEY= # Random generated secret key. # REQUIRED: Generate a cryptographically random value before starting. # Example: openssl rand -hex 32 NOVU_SECRET_KEY= # Host HOST_NAME=http://localhost # General # available values 'dev', 'test', 'production', 'ci', 'local' NODE_ENV=local MONGO_MAX_POOL_SIZE=10 MONGO_MIN_POOL_SIZE=5 # MONGO USER MONGO_INITDB_ROOT_USERNAME=root # MONGO PASSWORD MONGO_INITDB_ROOT_PASSWORD=secret MONGO_URL=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/novu-db?authSource=admin MONGO_AUTO_CREATE_INDEXES=true REDIS_HOST=redis REDIS_PASSWORD= REDIS_CACHE_SERVICE_HOST= # Set to true when connecting through a proxy that does not support the Redis INFO command REDIS_SKIP_VERSION_CHECK=false S3_LOCAL_STACK=${HOST_NAME}:4566 S3_BUCKET_NAME=novu-local S3_REGION=us-east-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test # Ports API_PORT=3000 REDIS_PORT=6379 REDIS_CACHE_SERVICE_PORT=6379 WS_PORT=3002 WORKER_PORT=3004 # Root URL VITE_API_HOSTNAME=${HOST_NAME}:3000 VITE_WEBSOCKET_HOSTNAME=${HOST_NAME}:3002 API_ROOT_URL=${HOST_NAME}:3000 FRONT_BASE_URL=${HOST_NAME}:(4000|4200) IS_API_IDEMPOTENCY_ENABLED=false IS_API_RATE_LIMITING_ENABLED=false IS_NEW_MESSAGES_API_RESPONSE_ENABLED=true IS_V2_ENABLED=true IS_SELF_HOSTED=true IS_EMAIL_INLINE_CSS_DISABLED=false IS_USE_MERGED_DIGEST_ID_ENABLED=false # Analytics SENTRY_DSN= # update these values in case you are using New Relic, by default New Relic is disabled NEW_RELIC_ENABLED=false NEW_RELIC_APP_NAME="NEW_RELIC_APP_NAME" NEW_RELIC_LICENSE_KEY="NEW_RELIC_LICENSE_KEY" BROADCAST_QUEUE_CHUNK_SIZE=100 MULTICAST_QUEUE_CHUNK_SIZE=100