-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
80 lines (69 loc) · 2.55 KB
/
Copy path.env.example
File metadata and controls
80 lines (69 loc) · 2.55 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Rename this file to .env and replace the placeholder values before running the stack
# ===================================
# Application Environment
# ===================================
NODE_ENV=development
REACT_APP_ENV=development
# Frontend API Base URLs (for development)
REACT_APP_API_BASE_URL=http://localhost:8080
REACT_APP_API_PRODUCTS_URL=http://localhost:8080/api/products
REACT_APP_API_VERIFICATION_URL=http://localhost:8080/api/verify
REACT_APP_API_EVENTS_URL=http://localhost:8080/api/events
# Backend Service URLs (used by frontend or gateway)
PRODUCT_SERVICE_URL=http://localhost:8081
VERIFICATION_SERVICE_URL=http://localhost:8082
EVENT_SERVICE_URL=http://localhost:8083
# ===================================
# Database Configuration
# ===================================
MONGODB_URI=mongodb://localhost:27017/supplychain_auth
MONGODB_DATABASE=supplychain_auth
MONGODB_USERNAME=change_me_mongo_user
MONGODB_PASSWORD=change_me_mongo_password
REDIS_URL=redis://localhost:6379
# Wrap passwords containing $ or ! in double quotes to avoid Docker variable expansion
REDIS_PASSWORD="change_me_redis_password"
POSTGRES_URL=postgresql://localhost:5432/supplychain_auth
POSTGRES_DB=supplychain_auth
POSTGRES_USERNAME=change_me_pg_user
POSTGRES_PASSWORD=change_me_pg_password
# ===================================
# Blockchain Configuration
# ===================================
BLOCKCHAIN_NETWORK=sepolia
ETHEREUM_RPC_URL=https://sepolia.infura.io/v3/<your_project_id>
PRIVATE_KEY=0xYOUR_PRIVATE_KEY
CONTRACT_ADDRESS=0xYourContractAddress
NFT_CONTRACT_ADDRESS=0xYourNftContract # optional, defaults to zero address during deploy
ZK_VERIFIER_ADDRESS=0xYourZkVerifier # optional, defaults to zero address during deploy
# ===================================
# Security Configuration
# ===================================
JWT_SECRET=change_me_jwt_secret
JWT_EXPIRES_IN=24h
JWT_REFRESH_EXPIRES_IN=7d
ENCRYPTION_KEY=64_char_hex_string_value_here
# ===================================
# External Services
# ===================================
EMAIL_SERVICE_API_KEY=your_mail_service_api_key
EMAIL_FROM=noreply@example.com
STORAGE_TYPE=local
STORAGE_PATH=./uploads
# ===================================
# Monitoring & Logging
# ===================================
LOG_LEVEL=info
METRICS_ENABLED=true
METRICS_PORT=9090
# ===================================
# Application Settings
# ===================================
PORT=8080
HOST=localhost
CORS_ORIGINS=http://localhost:3000
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
DEBUG_MODE=true
ENABLE_SWAGGER=true
CHOKIDAR_USEPOLLING=true