2023-09-15 16:24:34 +03:00
|
|
|
# General
|
|
|
|
BACKEND_APP_PORT=3000
|
|
|
|
FRONTEND_APP_PORT=5000
|
|
|
|
NODE_ENV=development
|
|
|
|
|
|
|
|
# RATE LIMIT
|
|
|
|
RATE_LIMIT_TTL=60
|
2023-11-21 14:06:43 +02:00
|
|
|
RATE_LIMIT_COUNT=100
|
2023-09-15 16:24:34 +03:00
|
|
|
|
|
|
|
# LOGGER
|
|
|
|
LOGGER_CONSOLE_THRESHOLD=INFO # DEBUG, INFO, WARN, ERROR, FATAL
|
|
|
|
|
|
|
|
# FRONTEND
|
|
|
|
DOMAIN=localhost
|
|
|
|
CLIENTSIDE_API_DOMAIN=http://localhost:3000 # Use this verible, while making client side API calls
|
|
|
|
API_DOMAIN=http://localhost:3000 # If you are running with docker compose change this to http://backend:3000
|
|
|
|
|
|
|
|
# DATABASE
|
|
|
|
# If you are running with docker compose change host to postgres
|
|
|
|
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/reduced_to_db?schema=public"
|
|
|
|
|
|
|
|
# REDIS
|
|
|
|
REDIS_ENABLE=false
|
|
|
|
REDIS_HOST=localhost
|
|
|
|
REDIS_PORT=6379
|
|
|
|
REDIS_PASSWORD=password
|
2023-12-03 18:19:48 +02:00
|
|
|
REDIS_TTL=1800 # 30 minutes in seconds (default ttl)
|
2023-09-15 16:24:34 +03:00
|
|
|
|
|
|
|
# AUTH
|
|
|
|
JWT_ACCESS_SECRET=abc1234
|
|
|
|
JWT_REFRESH_SECRET=abc1234
|
|
|
|
|
|
|
|
# NOVU - You don't need this when running locally (just verify your email from the database)
|
|
|
|
NOVU_API_KEY=Get it from https://novu.co/
|
|
|
|
|
2023-09-22 22:59:19 +03:00
|
|
|
|
2023-12-06 21:23:46 +02:00
|
|
|
# MEMPHIS (Event streaming service)
|
2023-09-22 22:59:19 +03:00
|
|
|
MEMPHIS_ENABLE=false # Set this to true if you want to use the event streaming service
|
|
|
|
MEMPHIS_HOST=Get it from https://memphis.dev/
|
|
|
|
MEMPHIS_USERNAME=Get it from https://memphis.dev/
|
|
|
|
MEMPHIS_PASSWORD=Get it from https://memphis.dev/
|
|
|
|
MEMPHIS_ACCOUNT_ID=Get it from https://memphis.dev/
|
2023-12-06 21:23:46 +02:00
|
|
|
|
|
|
|
# AUTH
|
|
|
|
AUTH_GOOGLE_CLIENT_ID=Get it from https://console.cloud.google.com/apis/credentials
|
|
|
|
AUTH_GOOGLE_CLIENT_SECRET=Get it from https://console.cloud.google.com/apis/credentials
|