-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
160 lines (135 loc) · 6.83 KB
/
Copy pathenv.example
File metadata and controls
160 lines (135 loc) · 6.83 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
154
155
156
157
158
159
160
# =============================================================================
# NFT MARKETPLACE V18 - ENVIRONMENT VARIABLES
# =============================================================================
# Copy this file to .env.local and fill in your actual values
# =============================================================================
# =============================================================================
# FIREBASE CONFIGURATION (Client-side - NEXT_PUBLIC_)
# =============================================================================
# Get these from your Firebase project settings > General > Your apps > Web app
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key_here
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project_id.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project_id.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=123456789
NEXT_PUBLIC_FIREBASE_APP_ID=1:123456789:web:abcdef123456
# =============================================================================
# FIREBASE ADMIN SDK (Server-side only)
# =============================================================================
# Get these from Firebase project settings > Service accounts > Generate new private key
FIREBASE_PROJECT_ID=your_project_id
FIREBASE_CLIENT_EMAIL=firebase-adminsdk-xxxxx@your_project_id.iam.gserviceaccount.com
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nYour private key here\n-----END PRIVATE KEY-----\n"
FIREBASE_DATABASE_URL=https://your_project_id-default-rtdb.firebaseio.com
# =============================================================================
# ALGORAND BLOCKCHAIN CONFIGURATION
# =============================================================================
# Network: "mainnet" or "testnet"
NEXT_PUBLIC_ALGORAND_NETWORK=testnet
# Your Algorand Application ID (if you have a custom marketplace app)
NEXT_PUBLIC_MARKETPLACE_APP_ID=0
# Platform wallet addresses (for fee collection and escrow)
PLATFORM_FEE_ADDRESS=your_platform_fee_wallet_address
PLATFORM_ESCROW_ADDRESS=your_platform_escrow_wallet_address
PLATFORM_WALLET_ADDRESS=your_platform_wallet_address
# =============================================================================
# ADMINISTRATION
# =============================================================================
# Master key for admin access (change this to a secure value)
ADMIN_MASTER_KEY=your_secure_admin_master_key_here
# =============================================================================
# SECURITY & SESSION MANAGEMENT
# =============================================================================
# JWT Secret for session management (generate a secure random string)
JWT_SECRET=your_jwt_secret_here_minimum_32_characters
# Session cookie settings
SESSION_SECRET=your_session_secret_here
COOKIE_SECRET=your_cookie_secret_here
# =============================================================================
# DATABASE (if using external database)
# =============================================================================
# PostgreSQL (if using)
DATABASE_URL=postgresql://username:password@localhost:5432/nft_marketplace
# MongoDB (if using)
MONGODB_URI=mongodb://localhost:27017/nft_marketplace
# =============================================================================
# EMAIL SERVICE (for notifications)
# =============================================================================
# SendGrid
SENDGRID_API_KEY=your_sendgrid_api_key
SENDGRID_FROM_EMAIL=noreply@yourdomain.com
# Or SMTP
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_app_password
# =============================================================================
# FILE STORAGE (for NFT metadata and images)
# =============================================================================
# AWS S3
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_REGION=us-east-1
AWS_S3_BUCKET=your_nft_bucket_name
# Or Cloudinary
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
# =============================================================================
# ANALYTICS & MONITORING
# =============================================================================
# Google Analytics
NEXT_PUBLIC_GA_TRACKING_ID=G-XXXXXXXXXX
# Sentry (error tracking)
NEXT_PUBLIC_SENTRY_DSN=https://your_sentry_dsn
# =============================================================================
# DEVELOPMENT & DEBUGGING
# =============================================================================
# Set to "development" for debug mode
NODE_ENV=development
# Enable detailed logging
DEBUG=nft-marketplace:*
# =============================================================================
# FEATURE FLAGS
# =============================================================================
# Enable/disable features
NEXT_PUBLIC_ENABLE_ANALYTICS=true
NEXT_PUBLIC_ENABLE_NOTIFICATIONS=true
NEXT_PUBLIC_ENABLE_SOCIAL_LOGIN=false
# =============================================================================
# RATE LIMITING
# =============================================================================
# API rate limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# =============================================================================
# CORS SETTINGS
# =============================================================================
# Allowed origins for CORS
CORS_ORIGIN=http://localhost:3000,https://yourdomain.com
# =============================================================================
# NOTIFICATION SETTINGS
# =============================================================================
# Webhook URLs for notifications
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/your_webhook
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/your_webhook
# =============================================================================
# CRYPTO EXCHANGE RATES (optional)
# =============================================================================
# CoinGecko API for price feeds
COINGECKO_API_KEY=your_coingecko_api_key
# =============================================================================
# BACKUP & RECOVERY
# =============================================================================
# Backup encryption key
BACKUP_ENCRYPTION_KEY=your_backup_encryption_key
# =============================================================================
# NOTES:
# =============================================================================
# 1. Never commit .env files to version control
# 2. Use strong, unique passwords and keys
# 3. Rotate keys regularly
# 4. Use different keys for development and production
# 5. Consider using a secrets management service for production
# 6. Test all environment variables before deployment
# =============================================================================