-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
40 lines (31 loc) · 1.36 KB
/
.env.example
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
# Server Configuration
NODE_ENV=development
PORT=3003 # Using 3003 since 3000 (relay), 3001 (IPFS), and 3002 (auth) are taken
# CORS Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:3002,http://localhost:3003
# Nostr Configuration
NOSTR_RELAYS=wss://relay.maiqr.app,wss://relay.damus.io,wss://relay.nostr.band
NOSTR_PRIVATE_KEY= # Bot's private key in hex format (64 chars)
NOSTR_PUBLIC_KEY= # Bot's public key in hex format (64 chars)
# Magic Link Configuration
MAGIC_LINK_BASE_URL=http://localhost:3003/auth
MAGIC_LINK_EXPIRY=300000 # 5 minutes in milliseconds
# JWT Configuration
JWT_SECRET=your_jwt_secret_key
JWT_EXPIRES_IN=24h
# API Platform Integration
API_PLATFORM_URL=http://localhost:8000
API_PLATFORM_JWT_PUBLIC_KEY=
# Logging
LOG_LEVEL=info # debug, info, warn, error
LOG_DIR=logs # Directory for log files
# Test Configuration
AUTH_HOST=http://localhost:3003 # Used by test scripts
TEST_PUBKEY= # Your test public key for running integration tests
# Security Configuration
API_KEYS=your_api_key_1,your_api_key_2 # Comma-separated list of valid API keys
RATE_LIMIT_WINDOW_MS=900000 # 15 minutes in milliseconds
RATE_LIMIT_MAX_REQUESTS=100 # Maximum requests per window
TRUSTED_PROXIES=127.0.0.1,::1 # Comma-separated list of trusted proxy IPs
# Development Mode (Optional)
TEST_MODE=true # Set to false in production