-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy path.env.example
More file actions
153 lines (113 loc) · 5.57 KB
/
.env.example
File metadata and controls
153 lines (113 loc) · 5.57 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# =============================================================================
# PropChain Frontend Environment Configuration Template
# =============================================================================
# Copy this file to .env.local for local development
# IMPORTANT: Never commit actual secrets to version control!
# =============================================================================
# -----------------------------------------------------------------------------
# Application General Settings
# -----------------------------------------------------------------------------
# Application name displayed in UI
NEXT_PUBLIC_APP_NAME=PropChain
# Base URL for the application (include protocol and trailing slash)
NEXT_PUBLIC_APP_URL=http://localhost:3000/
# Current deployment environment
# Options: development, staging, production
NODE_ENV=development
# Enable build analysis (set to "true" for bundle analysis)
ANALYZE=false
# Enable CSP enforcement (set to "true" after report-only rollout)
CSP_ENFORCE=false
# -----------------------------------------------------------------------------
# API Configurations
# -----------------------------------------------------------------------------
# Property API endpoint for fetching property data
NEXT_PUBLIC_PROPERTY_API_URL=https://api.propchain.example.com
# Analytics API endpoint (optional)
NEXT_PUBLIC_ANALYTICS_API_URL=https://analytics.propchain.example.com
# -----------------------------------------------------------------------------
# Redis Cache Configuration
# -----------------------------------------------------------------------------
# Redis connection settings for property data caching
# Redis server hostname or IP address
REDIS_HOST=localhost
# Redis server port
REDIS_PORT=6379
# Redis password (if authentication is enabled)
# REDIS_PASSWORD=your_redis_password
# Redis database number (0-15)
REDIS_DB=0
# Blockchain contract address for property events
PROPERTY_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000
# Blockchain RPC URL for event listening
BLOCKCHAIN_RPC_URL=https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID
# -----------------------------------------------------------------------------
# Web3 / Blockchain RPC Configurations
# -----------------------------------------------------------------------------
# These URLs are used for blockchain interactions. For production,
# use reliable RPC providers like Infura, Alchemy, or QuickNode.
# Format:_provider://YOUR_API_KEY
# Ethereum Mainnet RPC URL
ETHEREUM_MAINNET_RPC_URL=https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID
# Polygon Mainnet RPC URL
POLYGON_MAINNET_RPC_URL=https://polygon-rpc.com
# Binance Smart Chain Mainnet RPC URL
BSC_MAINNET_RPC_URL=https://bsc-dataseed.binance.org
# -----------------------------------------------------------------------------
# Wallet Connect Configuration
# -----------------------------------------------------------------------------
# Get your Project ID at https://cloud.walletconnect.com
# This is required for WalletConnect functionality
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your-walletconnect-project-id
# -----------------------------------------------------------------------------
# Feature Flags
# -----------------------------------------------------------------------------
# Enable/disable analytics tracking
NEXT_PUBLIC_ANALYTICS_ENABLED=false
# Enable/disable error reporting
NEXT_PUBLIC_ERROR_REPORTING_ENABLED=true
# Enable/disable debug mode (shows additional logging)
NEXT_PUBLIC_DEBUG_MODE=false
# Enable/disable maintenance mode
NEXT_PUBLIC_MAINTENANCE_MODE=false
# -----------------------------------------------------------------------------
# Internationalization (i18n)
# -----------------------------------------------------------------------------
# Default language
NEXT_PUBLIC_DEFAULT_LOCALE=en
# Supported locales (comma-separated)
NEXT_PUBLIC_SUPPORTED_LOCALES=en,es,fr,de,zh,ar,he
# -----------------------------------------------------------------------------
# External Services (Optional)
# -----------------------------------------------------------------------------
# Google Analytics Measurement ID (optional)
NEXT_PUBLIC_GA_MEASUREMENT_ID=
# Sentry DSN for error tracking (optional)
# Format: https://[PUBLIC_KEY]@o[ORG_ID].ingest.sentry.io/[PROJECT_ID]
NEXT_PUBLIC_SENTRY_DSN=
# -----------------------------------------------------------------------------
# Development/Testing Only
# -----------------------------------------------------------------------------
# These should NOT be set in production
# Mock data mode (bypasses real API calls)
NEXT_PUBLIC_USE_MOCK_DATA=false
# Skip authentication for development
NEXT_PUBLIC_SKIP_AUTH=false
# -----------------------------------------------------------------------------
# Rate Limiting Configuration
# -----------------------------------------------------------------------------
# Rate limit time window in milliseconds (default: 15 minutes)
RATE_LIMIT_WINDOW_MS=900000
# Maximum requests per IP per time window (default: 100)
RATE_LIMIT_MAX_REQUESTS=100
# Maximum requests per wallet address per time window (default: 50)
RATE_LIMIT_MAX_REQUESTS_PER_WALLET=50
# -----------------------------------------------------------------------------
# Secret Management (Production)
# -----------------------------------------------------------------------------
# For production deployments, use a secrets management service:
# - Vercel: Use Vercel Environment Variables
# - AWS: Use AWS Secrets Manager
# - GCP: Use Google Secret Manager
# - Azure: Use Azure Key Vault
# -----------------------------------------------------------------------------