-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
51 lines (45 loc) · 1.17 KB
/
.env.example
File metadata and controls
51 lines (45 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Server Configuration
SERVER_INTERNAL_PORT=9002
SERVER_EXTERNAL_PORT=9002
SERVER_NAME=Notifier
SERVER_RUN_MODE=development
# Database Configuration
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DBNAME=notifier_db
POSTGRES_SSLMODE=disable
POSTGRES_MAX_IDLE_CONNS=10
POSTGRES_MAX_OPEN_CONNS=100
POSTGRES_CONN_MAX_LIFETIME=60
# Worker Configuration
WORKER_NUM_WORKERS=10
WORKER_QUEUE_SIZE=1000
WORKER_RETRY_MAX_DELAY=300
WORKER_RETRY_BASE_DELAY=5
# CORS Configuration
CORS_ALLOW_ORIGINS=*
# Logger Configuration
LOGGER_FILE_PATH=logs/notifier.log
LOGGER_ENCODING=json
LOGGER_LEVEL=debug
LOGGER_TYPE=zap
# gRPC Configuration (optional)
GRPC_PORT=9003
GRPC_ENABLED=true
# Auth Configuration
# Set AUTH_ENABLED=true to require authentication for API endpoints
AUTH_ENABLED=false
AUTH_BASE_URL=http://auth:8080
AUTH_CLIENT_ID=notifier-service
AUTH_CLIENT_SECRET=your-client-secret
AUTH_JWT_SECRET=your-jwt-secret
# Kavenegar SMS Provider
KAVENEGAR_ENABLED=false
KAVENEGAR_API_KEY=
KAVENEGAR_TEMPLATE=verify
# Tracing (OpenTelemetry + Jaeger)
TRACING_ENABLED=false
JAEGER_URL=http://localhost:14268/api/traces
TRACING_SERVICE_NAME=notifier-service