-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production.example
More file actions
140 lines (118 loc) · 4.22 KB
/
Copy path.env.production.example
File metadata and controls
140 lines (118 loc) · 4.22 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
# Production Environment Variables
# Copy this file to .env.production and fill in your actual values
# ============================================
# Database Configuration
# ============================================
DB_HOST=postgres
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=CHANGE_ME_STRONG_PASSWORD_HERE
DB_NAME=proxify_production
DB_SSL_MODE=require
DATABASE_URL=postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=${DB_SSL_MODE}
# ============================================
# Redis Configuration
# ============================================
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=CHANGE_ME_REDIS_PASSWORD_HERE
REDIS_URL=redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}
# ============================================
# Application Configuration
# ============================================
NODE_ENV=production
LOG_LEVEL=info
# API Service
API_PORT=8080
API_URL=https://api.proxify.io
# Frontend Service
WEB_PORT=3000
VITE_API_URL=https://api.proxify.io
VITE_APP_URL=https://app.proxify.io
# CORS Configuration
CORS_ORIGINS=https://app.proxify.io,https://proxify.io
# ============================================
# Authentication (Privy)
# ============================================
PRIVY_APP_ID=your_privy_app_id_here
PRIVY_APP_SECRET=your_privy_app_secret_here
VITE_PRIVY_APP_ID=${PRIVY_APP_ID}
# ============================================
# Blockchain Configuration
# ============================================
# Alchemy RPC
ALCHEMY_API_KEY=your_alchemy_api_key_here
ALCHEMY_MAINNET_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}
ALCHEMY_SEPOLIA_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}
# Network Configuration
DEFAULT_CHAIN_ID=1 # 1 for mainnet, 11155111 for sepolia
SUPPORTED_CHAIN_IDS=1,11155111
# Contract Addresses (Mainnet)
USDC_ADDRESS_MAINNET=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
AAVE_POOL_ADDRESS_MAINNET=0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
# Contract Addresses (Sepolia)
USDC_ADDRESS_SEPOLIA=0x94a9D9AC8a22534E3FaCa9F4e7F2E2cf85d5E4C8
AAVE_POOL_ADDRESS_SEPOLIA=0x0496275d34753A48320CA58103d5220d394FF77F
# ============================================
# AI Services
# ============================================
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-4-turbo-preview
# LangChain/LangSmith (Optional)
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=your_langsmith_api_key_here
LANGCHAIN_PROJECT=proxify-production
LANGCHAIN_ENDPOINT=https://api.smith.langchain.com
# ============================================
# External Services
# ============================================
# Email Service (Optional)
SMTP_HOST=smtp.sendgrid.net
SMTP_PORT=587
SMTP_USER=apikey
SMTP_PASSWORD=your_sendgrid_api_key_here
SMTP_FROM_EMAIL=noreply@proxify.io
SMTP_FROM_NAME=Proxify
# Monitoring (Optional)
SENTRY_DSN=your_sentry_dsn_here
SENTRY_ENVIRONMENT=production
# Analytics (Optional)
MIXPANEL_TOKEN=your_mixpanel_token_here
GOOGLE_ANALYTICS_ID=G-XXXXXXXXXX
# ============================================
# Security & Rate Limiting
# ============================================
JWT_SECRET=CHANGE_ME_RANDOM_SECRET_HERE
SESSION_SECRET=CHANGE_ME_RANDOM_SESSION_SECRET_HERE
ENCRYPTION_KEY=CHANGE_ME_32_CHAR_ENCRYPTION_KEY
# Rate Limiting
RATE_LIMIT_WINDOW_MS=60000 # 1 minute
RATE_LIMIT_MAX_REQUESTS=100 # 100 requests per minute
# ============================================
# Docker & Deployment
# ============================================
DOCKER_REGISTRY=ghcr.io
DOCKER_NAMESPACE=your-github-org
GITHUB_SHA=latest
# ============================================
# Feature Flags (Optional)
# ============================================
ENABLE_AGENT=true
ENABLE_MCP_SERVER=true
ENABLE_YIELD_ENGINE=true
ENABLE_WITHDRAWALS=true
MAINTENANCE_MODE=false
# ============================================
# Agent Service Configuration (if enabled)
# ============================================
AGENT_PORT=8000
AGENT_API_URL=http://agent:8000
MCP_SERVER_URL=http://mcp-server:3000
# ============================================
# Backup Configuration (Optional)
# ============================================
BACKUP_RETENTION_DAYS=30
BACKUP_S3_BUCKET=proxify-backups
BACKUP_S3_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key