Files

81 lines
2.6 KiB
Bash

# Images
ASP_BACKEND_IMAGE=ghcr.io/funnywolf/agentic-soc-platform/asp-backend:0.5.2
ASP_FRONTEND_IMAGE=ghcr.io/funnywolf/agentic-soc-platform/asp-frontend:0.5.2
# ASP HTTPS entrypoint. Nginx binds to all host interfaces by default.
ASP_BIND=0.0.0.0
ASP_HTTPS_PORT=443
# Hostname used only when generating the fallback self-signed certificate.
ASP_PUBLIC_HOSTNAME=localhost
# Extra SAN entries for the generated self-signed certificate, for example:
# ASP_CERT_EXTRA_SAN=DNS:asp.example.com,IP:10.0.0.10
ASP_CERT_EXTRA_SAN=
# Nginx request body limit.
ASP_MAX_UPLOAD_SIZE=20m
# Django Web API process.
# Gunicorn worker processes and threads per worker.
ASP_WEB_WORKERS=3
ASP_WEB_THREADS=4
# Request timeout in seconds. Nginx derives its proxy timeout from this value.
ASP_WEB_TIMEOUT=210
# HTTP keep-alive duration in seconds.
ASP_WEB_KEEPALIVE=5
# Recycle workers after this many requests, with a random jitter.
ASP_WEB_MAX_REQUESTS=1000
ASP_WEB_MAX_REQUESTS_JITTER=100
# Maximum seconds doctor.sh waits for services to become ready.
ASP_DOCTOR_WAIT_SECONDS=180
# HTTP management UIs.
# Bind and host ports for Redis Stack UI and RustFS Console.
ASP_MANAGEMENT_BIND=0.0.0.0
ASP_REDIS_UI_PORT=8001
ASP_RUSTFS_CONSOLE_PORT=9001
# Django application settings.
DJANGO_SECRET_KEY=change-me-to-a-random-32-byte-minimum-secret
DJANGO_DEBUG=false
# Comma-separated hostnames accepted by Django.
DJANGO_ALLOWED_HOSTS=*
# Application log level, Django framework log level, and output format.
DJANGO_LOG_LEVEL=INFO
DJANGO_LOG_LEVEL_DJANGO=INFO
DJANGO_LOG_FORMAT=text
# PostgreSQL.
POSTGRES_DB=asp
POSTGRES_USER=postgres
POSTGRES_PASSWORD=change-me-postgres-password
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# Persistent connection lifetime in seconds and pre-use health checks.
POSTGRES_CONN_MAX_AGE=60
POSTGRES_CONN_HEALTH_CHECKS=true
# PostgreSQL server tuning. Memory values are per instance unless noted.
POSTGRES_MAX_CONNECTIONS=150
POSTGRES_SHARED_BUFFERS=512MB
POSTGRES_EFFECTIVE_CACHE_SIZE=2GB
# Per-operation memory and maintenance-operation memory.
POSTGRES_WORK_MEM=8MB
POSTGRES_MAINTENANCE_WORK_MEM=256MB
# Checkpoint spread ratio, planner disk cost, and slow-query threshold in ms.
POSTGRES_CHECKPOINT_COMPLETION_TARGET=0.9
POSTGRES_RANDOM_PAGE_COST=1.1
POSTGRES_LOG_MIN_DURATION_STATEMENT=1000
# Redis.
REDIS_HOST=redis-stack
REDIS_PORT=6379
# Redis logical database used by ASP.
REDIS_DB=1
REDIS_PASSWORD=change-me-redis-password
# RustFS / S3-compatible object storage.
RUSTFS_ENDPOINT_URL=http://rustfs:9000
# S3-compatible credentials, bucket, and signing region.
RUSTFS_ACCESS_KEY=asp
RUSTFS_SECRET_KEY=change-me-rustfs-password
RUSTFS_BUCKET=asp
RUSTFS_REGION=us-east-1