pg-api 0.1.0

A high-performance PostgreSQL REST API driver with rate limiting, connection pooling, and observability
# pg-api Environment Configuration Example
# Copy this file to .env and update with your values

# Application Configuration
APP__ADDR=127.0.0.1:8580
APP__LOG_LEVEL=info
APP__DOMAIN=localhost

# PostgreSQL Configuration
PG__MAX_CONNECTIONS=100
PG__POOL_SIZE=25

# License Configuration (required for production)
LICENSE_KEY=your_license_key_here

# OpenSearch Integration (optional)
OPENSEARCH_API_URL=https://opensearch-api.example.com
OPENSEARCH_API_TOKEN=sk_live_opensearch_token_example_123456
OPENSEARCH_INDEX_PREFIX=pg-api
OPENSEARCH_BATCH_SIZE=100
OPENSEARCH_FLUSH_INTERVAL=5s
OPENSEARCH_ENABLED=false

# Security
JWT_SECRET=your_jwt_secret_here
API_TOKENS=sk_live_example_token_123456,sk_test_example_token_789012

# Rate Limiting
DEFAULT_RATE_LIMIT=100
RATE_LIMIT_WINDOW_SECONDS=60

# Connection Limits
DEFAULT_MAX_CONNECTIONS=10

# Query Timeout
DEFAULT_QUERY_TIMEOUT_MS=30000