forked from HumanjavaEnterprises/nostr-auth-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
46 lines (35 loc) · 1.62 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
41
42
43
44
45
46
# Server Configuration
NODE_ENV=development
PORT=3002 # Using 3002 since 3000 (relay) and 3001 (IPFS) are taken
# CORS Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:3001,http://localhost:3002
# Nostr Configuration
NOSTR_RELAYS=wss://relay.maiqr.app,wss://relay.damus.io,wss://relay.nostr.band
# Server Keys (Will be auto-generated if not provided)
SERVER_PRIVATE_KEY= # Server's private key in hex format (64 chars)
SERVER_PUBLIC_KEY= # Server's public key in hex format (64 chars)
#kEY MANAGEMENT (development from the .env, production hosted by Supabase)
KEY_MANAGEMENT_MODE=development
# Supabase Configuration (Required in production for key storage)
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_anon_key
# JWT Configuration
JWT_SECRET=your_jwt_secret_key
JWT_EXPIRES_IN=24h
# API Platform Integration
API_PLATFORM_URL=http://localhost:8000 # Your API Platform URL
API_PLATFORM_JWT_PUBLIC_KEY= # Public key to verify API Platform JWTs
# Logging
LOG_LEVEL=info # debug, info, warn, error
LOG_DIR=logs # Directory for log files
# Test Configuration
AUTH_HOST=http://localhost:3002 # 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
ALLOWED_IPS= # Optional: Comma-separated list of allowed IPs
# Development Mode (Optional)
TEST_MODE=true # Set to false in production