bitip/.env.example
Tudor Stanciu 345ed9c68c Merged PR 109: Bitip project initialization - GeoIP lookup service with frontend interface
- feat: Implement GeoIP lookup service with frontend interface
- feat: Add dotenv dependency and configure environment variables; update rate limiter response handling
- refactor: Remove development Dockerfile and docker-compose for streamlined setup; update GeoIP service to use new MaxMind types
- chore: update dependencies and ESLint configuration
- feat: Add documentation for breaking changes and package updates after major version upgrades
- feat: Add environment configuration files and update module imports for ES module support
- feat: Update nodemon configuration and add register script for ES module support
- feat: Add .gitattributes file to enforce LF line endings and define text/binary file types
- feat: Implement graceful shutdown with timeout and update nodemon configuration
- feat: Update environment configuration and add detailed configuration guide
- feat: add frontend origin validation and update rate limits
- feat: add versioning arguments and detailed OCI image labels to Dockerfile
- feat: add version and release notes endpoints, update frontend to display release notes
- feat: Refactor App component to use React Router for navigation
- feat: Update navigation styles and remove unused type definitions for react-router-dom
- feat: Generate runtime configuration for frontend and serve env.js
- feat: Update dependencies, enhance ESLint configuration, and improve Vite setup
- refactor: Remove ensureTrailingSlash function and simplify basePath assignment in Vite config
2025-10-02 22:59:22 +00:00

40 lines
1.3 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=3000
BASE_PATH=/
NODE_ENV=production
# Database Path (usually doesn't need to change)
MAXMIND_DB_PATH=/usr/share/GeoIP
# 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:3000/api
# VITE_API_KEY=frontend-dev-key
# VITE_DEBOUNCE_MS=1000