Files
compose-anything/src/convex/.env.example
Sun-ZhenXing fbd0c9b7f4 feat: add services
- Introduced Convex, an open-source reactive database, with README and environment variable configurations.
- Added Chinese translation for Convex documentation.
- Created docker-compose configuration for Convex services.
- Introduced llama-swap, a model swapping proxy for OpenAI/Anthropic compatible servers, with comprehensive README and example configuration.
- Added Chinese translation for llama-swap documentation.
- Included example environment file and docker-compose setup for llama-swap.
- Configured health checks and resource limits for both Convex and llama-swap services.
2026-03-09 09:27:06 +08:00

159 lines
5.7 KiB
Plaintext

# Convex Configuration
# =============================================================================
# Versions
# =============================================================================
CONVEX_BACKEND_VERSION=33cef775a8a6228cbacee4a09ac2c4073d62ed13
CONVEX_DASHBOARD_VERSION=33cef775a8a6228cbacee4a09ac2c4073d62ed13
POSTGRES_VERSION=17-alpine
# =============================================================================
# Port Configuration
# =============================================================================
CONVEX_BACKEND_PORT_OVERRIDE=3210
CONVEX_SITE_PROXY_PORT_OVERRIDE=3211
CONVEX_DASHBOARD_PORT_OVERRIDE=6791
# =============================================================================
# Instance Configuration
# =============================================================================
# Name of your Convex instance
INSTANCE_NAME=convex-self-hosted
# Secret key for instance authentication (generate a strong random string)
# Example: openssl rand -hex 32
INSTANCE_SECRET=
# =============================================================================
# Origins
# =============================================================================
# URL where the Convex backend is accessible
CONVEX_CLOUD_ORIGIN=http://127.0.0.1:3210
# URL where the Convex site proxy is accessible
CONVEX_SITE_ORIGIN=http://127.0.0.1:3211
# URL for the dashboard to connect to the backend
NEXT_PUBLIC_DEPLOYMENT_URL=http://127.0.0.1:3210
# =============================================================================
# Database Configuration
# =============================================================================
# PostgreSQL password (change in production)
POSTGRES_PASSWORD=convex
# Full PostgreSQL connection URL (optional, constructed from above if not set)
# POSTGRES_URL=postgresql://postgres:convex@postgres:5432/convex
# MySQL URL (alternative to PostgreSQL, leave empty to use PostgreSQL)
# MYSQL_URL=
# =============================================================================
# Application Limits
# =============================================================================
# Maximum concurrent mutations
APPLICATION_MAX_CONCURRENT_MUTATIONS=16
# Maximum concurrent Node.js actions
APPLICATION_MAX_CONCURRENT_NODE_ACTIONS=16
# Maximum concurrent queries
APPLICATION_MAX_CONCURRENT_QUERIES=16
# Maximum concurrent V8 actions
APPLICATION_MAX_CONCURRENT_V8_ACTIONS=16
# User action timeout in seconds (empty for default)
ACTIONS_USER_TIMEOUT_SECS=
# =============================================================================
# SSL/TLS Settings
# =============================================================================
# Set to false to require SSL (recommended for production)
DO_NOT_REQUIRE_SSL=true
# =============================================================================
# Data Retention
# =============================================================================
# Document retention delay in seconds (default: 2 days)
DOCUMENT_RETENTION_DELAY=172800
# =============================================================================
# Telemetry and Metrics
# =============================================================================
# Disable telemetry beacon (set to true to disable)
DISABLE_BEACON=false
# Enable Prometheus-compatible /metrics endpoint
DISABLE_METRICS_ENDPOINT=true
# =============================================================================
# Logging
# =============================================================================
# Rust log level (error, warn, info, debug, trace)
RUST_LOG=info
# Enable Rust backtrace (1, full, or empty)
RUST_BACKTRACE=
# Redact logs sent to clients
REDACT_LOGS_TO_CLIENT=
# HTTP server timeout in seconds
HTTP_SERVER_TIMEOUT_SECONDS=
# =============================================================================
# AWS S3 Configuration (Optional - for external storage)
# =============================================================================
# AWS_ACCESS_KEY_ID=
# AWS_SECRET_ACCESS_KEY=
# AWS_REGION=
# AWS_SESSION_TOKEN=
# S3_ENDPOINT_URL=
# S3_STORAGE_EXPORTS_BUCKET=
# S3_STORAGE_FILES_BUCKET=
# S3_STORAGE_MODULES_BUCKET=
# S3_STORAGE_SEARCH_BUCKET=
# S3_STORAGE_SNAPSHOT_IMPORTS_BUCKET=
# AWS_S3_DISABLE_CHECKSUMS=
# AWS_S3_DISABLE_SSE=
# AWS_S3_FORCE_PATH_STYLE=
# =============================================================================
# Development Settings
# =============================================================================
# Development version override
CONVEX_RELEASE_VERSION_DEV=
# Load Monaco editor internally in dashboard
NEXT_PUBLIC_LOAD_MONACO_INTERNALLY=
# =============================================================================
# Timezone
# =============================================================================
TZ=UTC
# =============================================================================
# Resource Limits - Convex Backend
# =============================================================================
CONVEX_BACKEND_CPU_LIMIT=2.0
CONVEX_BACKEND_CPU_RESERVATION=0.5
CONVEX_BACKEND_MEMORY_LIMIT=2G
CONVEX_BACKEND_MEMORY_RESERVATION=512M
# =============================================================================
# Resource Limits - Convex Dashboard
# =============================================================================
CONVEX_DASHBOARD_CPU_LIMIT=0.5
CONVEX_DASHBOARD_CPU_RESERVATION=0.25
CONVEX_DASHBOARD_MEMORY_LIMIT=256M
CONVEX_DASHBOARD_MEMORY_RESERVATION=128M
# =============================================================================
# Resource Limits - PostgreSQL
# =============================================================================
POSTGRES_CPU_LIMIT=1.0
POSTGRES_CPU_RESERVATION=0.25
POSTGRES_MEMORY_LIMIT=1G
POSTGRES_MEMORY_RESERVATION=256M