-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
92 lines (76 loc) · 1.94 KB
/
env.example
File metadata and controls
92 lines (76 loc) · 1.94 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
81
82
83
84
85
86
87
88
89
90
91
92
# Environment Configuration
NODE_ENV=development
PORT=3000
# Database Configuration
DB_HOST=localhost
DB_PORT=3306
DB_NAME=rechain_dao
DB_USER=root
DB_PASSWORD=password
DB_SSL=false
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-here
JWT_EXPIRES_IN=1h
JWT_REFRESH_EXPIRES_IN=7d
# Ethereum Configuration
ETHEREUM_RPC_URL=https://mainnet.infura.io/v3/your-project-id
ETHEREUM_NETWORK=mainnet
ETHEREUM_CHAIN_ID=1
# Smart Contract Addresses
DAO_TOKEN_ADDRESS=0x1234567890123456789012345678901234567890
GOVERNANCE_ADDRESS=0x1234567890123456789012345678901234567890
TREASURY_ADDRESS=0x1234567890123456789012345678901234567890
# API Configuration
API_BASE_URL=http://localhost:3000
API_VERSION=v1
CORS_ORIGIN=http://localhost:3000
# Email Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM=noreply@rechain-dao.com
# File Upload Configuration
UPLOAD_MAX_SIZE=10485760
UPLOAD_ALLOWED_TYPES=image/jpeg,image/png,image/gif,application/pdf
UPLOAD_PATH=./uploads
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Logging Configuration
LOG_LEVEL=info
LOG_FILE=./logs/app.log
LOG_MAX_SIZE=10m
LOG_MAX_FILES=5
# Monitoring Configuration
PROMETHEUS_PORT=9090
GRAFANA_PORT=3001
# Security Configuration
BCRYPT_ROUNDS=12
SESSION_SECRET=your-session-secret-here
COOKIE_SECRET=your-cookie-secret-here
# External Services
INFURA_PROJECT_ID=your-infura-project-id
ALCHEMY_API_KEY=your-alchemy-api-key
ETHERSCAN_API_KEY=your-etherscan-api-key
# Feature Flags
ENABLE_REGISTRATION=true
ENABLE_EMAIL_VERIFICATION=true
ENABLE_TWO_FACTOR=true
ENABLE_SOCIAL_LOGIN=true
# Development Configuration
DEBUG=true
VERBOSE_LOGGING=true
HOT_RELOAD=true
# Production Configuration (uncomment for production)
# NODE_ENV=production
# DB_SSL=true
# LOG_LEVEL=warn
# DEBUG=false
# VERBOSE_LOGGING=false
# HOT_RELOAD=false