Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
105 lines (81 loc) · 3.25 KB
/
Copy path.env.example
File metadata and controls
105 lines (81 loc) · 3.25 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
# Blockchain RPC URLs
# Get free API keys from:
# - Alchemy: https://alchemy.com
# - Infura: https://infura.io
# Ethereum Sepolia Testnet (recommended for testing)
SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Ethereum Goerli Testnet
GOERLI_RPC_URL=https://eth-goerli.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Polygon Mumbai Testnet
MUMBAI_RPC_URL=https://polygon-mumbai.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Polygon Mainnet
POLYGON_RPC_URL=https://polygon-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Ethereum Mainnet (Production - use with caution!)
MAINNET_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_ALCHEMY_API_KEY
# Wallet Private Key (DO NOT SHARE OR COMMIT!)
# Export from MetaMask: Account Details > Export Private Key
# For testnet, use a dedicated wallet with only test ETH
PRIVATE_KEY=your_wallet_private_key_here
# Etherscan API Key (for contract verification)
# Get from: https://etherscan.io/myapikey
ETHERSCAN_API_KEY=your_etherscan_api_key
# Polygonscan API Key (for Polygon contract verification)
# Get from: https://polygonscan.com/myapikey
POLYGONSCAN_API_KEY=your_polygonscan_api_key
# IPFS Configuration
# Pinata (Recommended)
# Sign up at: https://pinata.cloud
PINATA_API_KEY=your_pinata_api_key
PINATA_SECRET_KEY=your_pinata_secret_api_key
# Infura IPFS (Alternative)
# Get from: https://infura.io
INFURA_IPFS_PROJECT_ID=your_infura_project_id
INFURA_IPFS_PROJECT_SECRET=your_infura_secret
# Social Media OAuth
# Facebook App (for Facebook/Instagram integration)
# Create app at: https://developers.facebook.com
FACEBOOK_APP_ID=your_facebook_app_id
FACEBOOK_APP_SECRET=your_facebook_app_secret
# Firebase Configuration (for authentication and notifications)
# Get from: https://console.firebase.google.com
FIREBASE_API_KEY=your_firebase_api_key
FIREBASE_PROJECT_ID=your_firebase_project_id
FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
FIREBASE_APP_ID=your_firebase_app_id
# Gas Reporter Configuration (optional)
# For USD gas cost estimates
# Get from: https://coinmarketcap.com/api/
COINMARKETCAP_API_KEY=your_coinmarketcap_api_key
REPORT_GAS=false
# Backend API (if using separate backend)
BACKEND_API_URL=http://localhost:3000
BACKEND_API_KEY=your_backend_api_key
# Security
# JWT secret for authentication tokens (generate random string)
JWT_SECRET=your_super_secret_jwt_key_change_this
# Encryption salt (generate random string)
ENCRYPTION_SALT=your_encryption_salt_change_this
# Environment
NODE_ENV=development
# Database (if using PostgreSQL for metadata)
DATABASE_URL=postgresql://user:password@localhost:5432/digital_will_db
# Redis (for caching and job queues)
REDIS_URL=redis://localhost:6379
# Monitoring & Analytics (optional)
SENTRY_DSN=your_sentry_dsn
MIXPANEL_TOKEN=your_mixpanel_token
# Email Service (for verification notifications)
# SendGrid, AWS SES, or similar
SENDGRID_API_KEY=your_sendgrid_api_key
FROM_EMAIL=noreply@yourapp.com
# SMS Service (for verification notifications)
# Twilio or similar
TWILIO_ACCOUNT_SID=your_twilio_account_sid
TWILIO_AUTH_TOKEN=your_twilio_auth_token
TWILIO_PHONE_NUMBER=+1234567890
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Testing
TEST_WALLET_ADDRESS=0x0000000000000000000000000000000000000000
TEST_PRIVATE_KEY=test_private_key_for_automated_tests