forked from SourceXXL/alian_structure-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
84 lines (71 loc) · 2.82 KB
/
Copy path.env.example
File metadata and controls
84 lines (71 loc) · 2.82 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
# Server Configuration
NODE_ENV=development
PORT=3000
API_PREFIX=/api/v1
# Database
DATABASE_URL=postgresql://user:password@localhost:5432/alianStructure.db
# JWT
JWT_SECRET=your_jwt_secret_key_here
JWT_EXPIRATION=24h
# AI Services
OPENAI_API_KEY=your_openai_key
GROK_API_KEY=your_grok_key
LLAMA_API_BASE_URL=http://localhost:8000
# Blockchain
ETH_RPC_URL=https://mainnet.infura.io/v3/your-project-id
CHAIN_ID=1
# Redis (for caching and WebSocket)
REDIS_URL=redis://localhost:6379
# Logging
LOG_LEVEL=debug
# Sentry Error Tracking
SENTRY_DSN=
SENTRY_ENVIRONMENT=development
SENTRY_RELEASE=0.1.0
SENTRY_TRACES_SAMPLE_RATE=0.1
# Email Service (Ethereal for testing, configure SMTP for production)
SMTP_HOST=smtp.ethereal.email
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=
SMTP_PASSWORD=
EMAIL_FROM=noreply@alian-structure.com
EMAIL_VERIFICATION_URL=http://localhost:3000/auth/verify-email
# Oracle Service Configuration
# Contract address for on-chain oracle (set to actual deployed contract)
ORACLE_CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000
# Submitter wallet private key (for signing on-chain transactions)
# IMPORTANT: Store in secure KMS in production, never commit actual keys
SUBMITTER_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000
# Oracle submission settings
SUBMITTER_MAX_RETRIES=3
SUBMITTER_RETRY_DELAY=5000
SUBMITTER_GAS_LIMIT_MULTIPLIER=1.2
# OpenAI Configuration
OPENAI_API_KEY=sk-your-api-key-here
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MAX_RETRIES=3
OPENAI_RETRY_DELAY=1000
# Compute Job Queue Configuration
COMPUTE_JOB_RETRY_POLICIES={"email-notification":{"maxAttempts":2,"backoff":{"type":"fixed","delay":1000}},"batch-operation":{"maxAttempts":5,"backoff":{"type":"exponential","delay":1000,"factor":1.5,"maxDelay":60000}},"data-processing":{"maxAttempts":3,"backoff":{"type":"linear","delay":2000,"maxDelay":10000}},"ai-computation":{"maxAttempts":4,"backoff":{"type":"exponential","delay":3000,"factor":2,"maxDelay":120000}}}
# Referral System Configuration
# Maximum referral codes a single user can create
REFERRAL_MAX_PER_USER=10
# Maximum claims allowed from the same IP address
REFERRAL_MAX_CLAIMS_PER_IP=5
# Maximum claims allowed from the same device fingerprint
REFERRAL_MAX_CLAIMS_PER_DEVICE=3
# Days until referral codes expire
REFERRAL_CODE_EXPIRY_DAYS=365
# Number of accounts from same IP to trigger warning
REFERRAL_SUSPICIOUS_IP_THRESHOLD=3
# Number of accounts from same device to trigger warning
REFERRAL_SUSPICIOUS_DEVICE_THRESHOLD=2
# Rate limit window in milliseconds (default: 1 hour)
REFERRAL_RATE_LIMIT_WINDOW_MS=3600000
# Maximum attempts within rate limit window
REFERRAL_RATE_LIMIT_MAX_ATTEMPTS=10
# Enable bot detection based on user agent
REFERRAL_ENABLE_BOT_DETECTION=true
# Enable VPN/Proxy detection (requires external service)
REFERRAL_ENABLE_VPN_DETECTION=false