-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
62 lines (51 loc) · 1.22 KB
/
.env.example
File metadata and controls
62 lines (51 loc) · 1.22 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
52
53
54
55
56
57
58
59
60
61
62
# Database Configuration
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=imuser
POSTGRES_PASSWORD=impassword
POSTGRES_DB=im_system
POSTGRES_SSLMODE=disable
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# Consul Configuration
CONSUL_ADDRESS=localhost:8500
CONSUL_SCHEME=http
# Garage S3 Configuration
S3_ENDPOINT=http://localhost:3900
S3_ACCESS_KEY=GK31c2f218bd0e44fcbb88de5b4
S3_SECRET_KEY=b892c0665f0ada8a4755dae98baa3e133590e11dae3bcc1f9d769d67f16c3835
S3_BUCKET=im-files
S3_USE_SSL=false
S3_REGION=garage
# JWT Configuration
JWT_SECRET=change-this-secret-key-in-production
JWT_EXPIRY=24h
# Server Configuration
GATEWAY_PORT=50051
ROUTER_PORT=50052
MESSAGE_PORT=50053
USER_PORT=50054
FILE_PORT=8080
# Service Configuration
SERVICE_NAME_GATEWAY=gateway
SERVICE_NAME_ROUTER=router
SERVICE_NAME_MESSAGE=message
SERVICE_NAME_USER=user
SERVICE_NAME_FILE=file
# Logging Configuration
LOG_LEVEL=info
LOG_ENCODING=json
LOG_OUTPUT=stdout
# File Service Configuration
MAX_FILE_SIZE=524288000 # 500MB in bytes
# Message Configuration
MESSAGE_RETENTION_DAYS=30
MESSAGE_PULL_LIMIT=100
# Router Configuration
ROUTE_TTL=60s
HEARTBEAT_INTERVAL=30s
# Development/Production Flag
ENVIRONMENT=development