mirror of
https://dev.azure.com/tstanciu94/PhantomMind/_git/Bitip
synced 2025-10-13 01:52:19 +03:00
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
# Environment variables for Bitip GeoIP Service
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# API Keys (CHANGE THESE IN PRODUCTION!)
|
|
FRONTEND_API_KEY=your-secure-frontend-api-key-here
|
|
EXTERNAL_API_KEYS=your-secure-external-api-key-1,your-secure-external-api-key-2
|
|
|
|
# Frontend Origin Validation
|
|
# Comma-separated list of allowed origins for frontend API key
|
|
# In production, set this to your actual domain(s)
|
|
FRONTEND_ALLOWED_ORIGINS=https://your-domain.com,https://www.your-domain.com
|
|
|
|
# Server Configuration
|
|
PORT=5172
|
|
BASE_PATH=/
|
|
NODE_ENV=production
|
|
|
|
# Database Path (usually doesn't need to change)
|
|
MAXMIND_DB_PATH=/usr/share/maxmind
|
|
|
|
# Rate Limiting Configuration
|
|
FRONTEND_RATE_WINDOW_MS=60000 # 1 minute window
|
|
FRONTEND_RATE_MAX=30 # 30 requests per minute for frontend
|
|
EXTERNAL_RATE_WINDOW_MS=60000 # 1 minute window
|
|
EXTERNAL_RATE_MAX=1000 # 1000 requests per minute for external APIs
|
|
|
|
# Batch Configuration
|
|
BATCH_LIMIT=100 # Maximum IPs per batch request
|
|
DEBOUNCE_MS=2000 # Debounce delay for frontend input
|
|
|
|
# Seq Logging (Optional)
|
|
# Uncomment and fill if you want to use Seq for structured logging
|
|
# SEQ_URL=http://your-seq-server:5341
|
|
# SEQ_API_KEY=your-seq-api-key
|
|
|
|
# Development Overrides (used in docker-compose.dev.yml)
|
|
# VITE_API_URL=http://localhost:5172/api
|
|
# VITE_API_KEY=frontend-dev-key
|
|
# VITE_DEBOUNCE_MS=1000
|