-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
48 lines (41 loc) · 993 Bytes
/
Copy path.env.example
File metadata and controls
48 lines (41 loc) · 993 Bytes
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
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=password
DB_NAME=messenger
DB_SSL_MODE=disable
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=5
DB_CONN_MAX_LIFETIME=300s
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# JWT Configuration
JWT_SECRET=your-jwt-secret-here-change-in-production
JWT_EXPIRATION=24h
# Service Ports
AUTH_SERVICE_GRPC_PORT=50001
AUTH_SERVICE_HTTP_PORT=8001
USER_SERVICE_GRPC_PORT=50002
USER_SERVICE_HTTP_PORT=8002
CHAT_SERVICE_GRPC_PORT=50003
CHAT_SERVICE_HTTP_PORT=8003
SUBSCRIBER_SERVICE_GRPC_PORT=50004
SUBSCRIBER_SERVICE_HTTP_PORT=8004
GATEWAY_HTTP_PORT=8000
# Service URLs (for inter-service communication)
AUTH_SERVICE_URL=localhost:50001
USER_SERVICE_URL=localhost:50002
CHAT_SERVICE_URL=localhost:50003
SUBSCRIBER_SERVICE_URL=localhost:50004
# Logging
LOG_LEVEL=info
LOG_FORMAT=json
# Environment
ENV=development
# Server Configuration
SERVER_READ_TIMEOUT=10s
SERVER_WRITE_TIMEOUT=10s