mirror of
https://github.com/superdesigndev/treg.git
synced 2026-10-02 03:24:35 +08:00
30 lines
1.4 KiB
Bash
30 lines
1.4 KiB
Bash
# Archive object storage. Supply credentials privately; never commit populated values.
|
|
TREG_ARCHIVE_OBJECT_STORE_ENDPOINT=
|
|
TREG_ARCHIVE_OBJECT_STORE_BUCKET=
|
|
TREG_ARCHIVE_OBJECT_STORE_ACCESS_KEY_ID=
|
|
TREG_ARCHIVE_OBJECT_STORE_SECRET_ACCESS_KEY=
|
|
|
|
# Omit these switches to retain the default db behavior. Uncomment with a valid value.
|
|
# Write accepts db / both / r2; reads accept db / r2-first.
|
|
# TREG_ARCHIVE_BODY_WRITE=
|
|
# TREG_ARCHIVE_BODY_READ_LOOKUP=
|
|
# TREG_ARCHIVE_BODY_READ_RESULT=
|
|
# TREG_ARCHIVE_BODY_READ_TERMINAL=
|
|
|
|
# Read timeout defaults to 2 seconds; upload keeps its separate timeout.
|
|
# TREG_ARCHIVE_R2_READ_TIMEOUT_S=
|
|
|
|
# Optional changed-path reporting (shares archive concurrency and lookup read mode).
|
|
TREG_ARCHIVE_CHANGE_OBSERVATION_ENABLED=true
|
|
|
|
# Optional operator cache age ceilings by exact endpoint ID (seconds).
|
|
TREG_ARCHIVE_SERVE_MAX_AGE_S={}
|
|
|
|
# Optional SQLite / PostgreSQL read datasource. Empty reuses the primary for opted-in reads.
|
|
# Existing queries and all writes still use TREG_DATABASE_URL; this does not route them automatically.
|
|
# Supply the real URL privately, e.g. postgresql://user:password@replica-host/database.
|
|
# SQLite: sqlite+aiosqlite:///file:replica.db?mode=ro&uri=true opens an existing file read-only.
|
|
# You must provision and synchronize the datasource separately; this URL does not replicate data.
|
|
TREG_READ_DATABASE_URL=
|
|
# Optional PostgreSQL pool sizing: TREG_DB_POOL_OVERRIDES=read.pool_size=2,read.max_overflow=0
|