Files
call-me/.env.template

83 lines
2.3 KiB
Bash

# App environment
NODE_ENV=development #development or production
# Server
HOST='' # Default http://localhost:port
PORT=8000
# Logging
LOGS_DEBUG=true # true or false
LOGS_JSON=false # Enable JSON formatted logs (true/false)
LOGS_JSON_PRETTY=false # Enable pretty JSON formatted logs (true/false)
# Host
HOST_PASSWORD_ENABLED=false # true or false
HOST_PASSWORD='123456789'
# Cors
# Origin: Allow specified origin es '["https://example.com", "https://subdomain.example.com", "http://localhost:8000"]' or
# all origins '*' if not specified as per default.
# Methods: Allow only GET and POST methods
CORS_ORIGIN='*'
CORS_METHODS='["GET", "POST"]'
# Stun
STUN_SERVER_ENABLED=true # true or false
STUN_SERVER_URL=stun:stun.l.google.com:19302
# Turn
# Please create your own free account on: https://www.metered.ca/tools/openrelay/
TURN_SERVER_ENABLED=false # true or false
TURN_SERVER_URL=turn:a.relay.metered.ca:443
TURN_SERVER_USERNAME=e8dd65b92c62d3e36cafb807
TURN_SERVER_CREDENTIAL=uWdWNmkhvyqTEswO
# Ngrok
# 1. Goto https://ngrok.com
# 2. Get started for free
# 3. Copy YourNgrokAuthToken: https://dashboard.ngrok.com/get-started/your-authtoken
NGROK_ENABLED=false # true or false
NGROK_AUTH_TOKEN=YourNgrokAuthToken
# Time Zone corresponding to timezone identifiers from the IANA Time Zone Database es Europe/Rome default UTC
TZ=UTC
# API
API_KEY_SECRET=call_me_api_key_secret # change me
# API endpoint for fetching random images (e.g., Unsplash or other services): https://unsplash.com/developers
# RANDOM_IMAGE_URL='https://api.unsplash.com/photos/random?query=nature&orientation=landscape&client_id=YOUR-ACCESS-KEY';
RANDOM_IMAGE_URL=''
# Push Notifications (Web Push / VAPID)
# Generate VAPID keys with: npm run generate-vapid-keys
PUSH_ENABLED=false # true or false
PUSH_VAPID_PUBLIC_KEY=''
PUSH_VAPID_PRIVATE_KEY=''
PUSH_VAPID_EMAIL='mailto:admin@example.com'
# Sentry
# 1. Goto https://sentry.io/
# 2. Create account
# 3. Goto Settings/Projects/YourProjectName/Client Keys (DSN)
SENTRY_ENABLED=false # true or false
SENTRY_LOG_LEVELS=error # Log levels to capture in Sentry (e.g., error,warn)
SENTRY_DSN=
SENTRY_TRACES_SAMPLE_RATE=0.5 # Adjust the sample rate for performance monitoring (0.0 to 1.0)
# Time in seconds before a call is considered unanswered (default 30 seconds)
RINGING_TIMEOUT=30