-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
58 lines (48 loc) · 1.7 KB
/
.env.example
File metadata and controls
58 lines (48 loc) · 1.7 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
# Server Configuration
NODE_ENV=development
PORT=3000
API_PREFIX=/api/v1
# Keycloak Configuration
KEYCLOAK_URL=http://keycloak.treetracker.svc.cluster.local:8080
KEYCLOAK_REALM=treetracker
KEYCLOAK_CLIENT_ID=treetracker-auth
KEYCLOAK_CLIENT_SECRET=your-client-secret
KEYCLOAK_ADMIN_USERNAME=admin
KEYCLOAK_ADMIN_PASSWORD=admin
# Hyperledger Fabric Configuration
FABRIC_NETWORK_NAME=treetracker-network
FABRIC_CHANNEL_NAME=treetracker-channel
FABRIC_CHAINCODE_NAME=treetracker
FABRIC_MSP_ID=GreenstandMSP
FABRIC_PEER_ENDPOINT=peer0.greenstand.treetracker.svc.cluster.local:7051
FABRIC_ORDERER_ENDPOINT=orderer.treetracker.svc.cluster.local:7050
FABRIC_CA_URL=https://ca.greenstand.treetracker.svc.cluster.local:7054
FABRIC_CA_NAME=ca-greenstand
FABRIC_ADMIN_USER=admin
FABRIC_ADMIN_PASSWORD=adminpw
# Fabric TLS Configuration
FABRIC_TLS_ENABLED=true
FABRIC_TLS_CERT_PATH=/crypto-config/peerOrganizations/greenstand.treetracker/peers/peer0.greenstand.treetracker/tls/ca.crt
FABRIC_TLS_KEY_PATH=/crypto-config/peerOrganizations/greenstand.treetracker/peers/peer0.greenstand.treetracker/tls/server.key
# Wallet Configuration
WALLET_PATH=/app/wallet
WALLET_TYPE=FileSystemWallet
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES_IN=1h
JWT_REFRESH_EXPIRES_IN=7d
# CORS Configuration
CORS_ORIGIN=http://localhost:3001,https://treetracker.example.com
CORS_CREDENTIALS=true
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Logging
LOG_LEVEL=info
LOG_FORMAT=json
# Database (Optional - for session storage)
REDIS_URL=redis://redis.treetracker.svc.cluster.local:6379
SESSION_SECRET=your-session-secret-change-in-production
# Monitoring
ENABLE_METRICS=true
METRICS_PORT=9090