mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-12 23:12:23 -06:00
2b58c127b1
* Add pluggable storage backend (SQLite + PostgreSQL) and deployment packaging Database abstraction: StorageBackend protocol with 21 methods, SQLAlchemy Core schema, SQLite backend (FTS5), PostgreSQL backend (tsvector/ILIKE), Alembic migrations, singleton registry. memory.py reduced to thin facade. Session.py open_db() calls replaced with generic KV methods. [database] config section with env var support. Deployment: Docker Compose production profile with PostgreSQL, Dockerfile with postgres extras and migration entrypoint, Helm chart with bitnami subcharts, Terraform AWS ECS/Fargate module with RDS + ElastiCache + ALB. 39 new storage tests (934 total). mypy strict clean. Docs and diagrams updated. * Address PR #20 review feedback (16 items) - Backends only call create_all() when Alembic migrations are disabled - Helm configmap uses correct TURNSTONE_DB_BACKEND env var; DB URL constructed via env expansion with secret reference instead of ConfigMap - Migration errors fail fast for PostgreSQL (only non-fatal for SQLite) - save_memory/delete_memory wrapped in exception handling like other facade fns - pool_size passed through from config/env to init_storage() in cli + server - Terraform: DB URL moved to Secrets Manager, auth enabled flag set, optional TLS listeners with certificate_arn, Redis transit encryption on - Docker entrypoint no longer suppresses migration output - Diagram fixes: removed StaticPool claim, removed non-existent migration ref - compose.yaml/README: clarified production profile requires DB env vars
23 lines
747 B
Plaintext
23 lines
747 B
Plaintext
# --- Required ---
|
|
|
|
# VPC and subnet IDs from your existing AWS infrastructure.
|
|
# The VPC must have DNS support and DNS hostnames enabled.
|
|
vpc_id = "vpc-0123456789abcdef0"
|
|
private_subnet_ids = ["subnet-aaa111", "subnet-bbb222"]
|
|
public_subnet_ids = ["subnet-ccc333", "subnet-ddd444"]
|
|
|
|
# LLM provider configuration.
|
|
# For OpenAI: https://api.openai.com/v1
|
|
# For a self-hosted vLLM instance: http://your-vllm-host:8000/v1
|
|
llm_base_url = "https://api.openai.com/v1"
|
|
openai_api_key = "sk-..."
|
|
|
|
# --- Optional ---
|
|
|
|
# aws_region = "us-east-1"
|
|
# image_repository = "ghcr.io/turnstonelabs/turnstone"
|
|
# image_tag = "0.3.0"
|
|
# environment = "production"
|
|
# name_prefix = "turnstone"
|
|
# auth_token = "my-secret-token"
|