Files
artifact-store/.env.example

55 lines
2.1 KiB
Plaintext

# artifact-store environment configuration
#
# Copy to .env for local development. All keys are prefixed with
# ARTIFACTSTORE_; pydantic-settings reads them automatically.
# Database connection string. SQLite (with aiosqlite) for dev; PostgreSQL
# (with asyncpg) for shared deployments.
# sqlite+aiosqlite:///./var/artifactstore.db
# postgresql+asyncpg://user:pass@host:5432/artifactstore
ARTIFACTSTORE_DATABASE_URL=sqlite+aiosqlite:///./var/artifactstore.db
# Local filesystem storage root. Used by the LocalBackend (WP-0001-T003).
ARTIFACTSTORE_STORAGE_LOCAL_ROOT=./var/storage
# Python logging level: DEBUG | INFO | WARNING | ERROR
ARTIFACTSTORE_LOG_LEVEL=INFO
# Shared-secret bearer tokens for the HTTP API. Comma- or newline-separated.
# Protected endpoints return 401 until at least one token is configured.
ARTIFACTSTORE_AUTH_TOKENS=dev-token
# Read endpoints are authenticated by default. Set true only for local demos.
ARTIFACTSTORE_ANON_READ=false
# Defaults used by `artifactstore push` and `artifactstore manifest`.
ARTIFACTSTORE_API_URL=http://127.0.0.1:8000
ARTIFACTSTORE_API_TOKEN=dev-token
# Optional TOML file overriding retention class default durations.
ARTIFACTSTORE_RETENTION_CONFIG_PATH=
# Default interval for external schedulers that run `artifactstore retention sweep`.
ARTIFACTSTORE_RETENTION_SWEEP_INTERVAL_SECONDS=3600
# Storage backend selection. `local` is always available; `s3` requires the
# optional S3 dependency and the S3 settings below.
ARTIFACTSTORE_STORAGE_BACKENDS=local
ARTIFACTSTORE_STORAGE_DEFAULT_BACKEND=local
# Format: producer:retention_class=backend_id, with * wildcards.
# Example: guide-board:release-evidence=s3,*:*=local
ARTIFACTSTORE_STORAGE_BACKEND_ROUTES=
# S3-compatible backend settings for Ceph RGW / MinIO / AWS S3.
ARTIFACTSTORE_S3_ENDPOINT_URL=
ARTIFACTSTORE_S3_REGION=us-east-1
ARTIFACTSTORE_S3_BUCKET=
ARTIFACTSTORE_S3_KEY_PREFIX=artifact-store
# Secret refs must be env:NAME or file:/mounted/path.
ARTIFACTSTORE_S3_ACCESS_KEY_REF=
ARTIFACTSTORE_S3_SECRET_KEY_REF=
ARTIFACTSTORE_S3_STORAGE_CLASS=
ARTIFACTSTORE_S3_SSE=
ARTIFACTSTORE_S3_MULTIPART_THRESHOLD_BYTES=67108864
ARTIFACTSTORE_S3_MULTIPART_CHUNK_BYTES=8388608