mirror of
https://github.com/bleak-ai/gcontext.git
synced 2026-08-11 13:19:23 +02:00
FastAPI + Postgres service that stores workflow templates as file bundles with indexed manifest fields, submit-for-review publishing, and moderation endpoints behind an admin token. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
15 lines
330 B
Python
15 lines
330 B
Python
import os
|
|
|
|
|
|
def database_url() -> str:
|
|
return os.environ["DATABASE_URL"]
|
|
|
|
|
|
def admin_token() -> str:
|
|
return os.environ["ADMIN_TOKEN"]
|
|
|
|
|
|
MAX_FILE_BYTES = int(os.environ.get("MAX_FILE_BYTES", 1_000_000))
|
|
MAX_BUNDLE_BYTES = int(os.environ.get("MAX_BUNDLE_BYTES", 5_000_000))
|
|
MAX_FILES = int(os.environ.get("MAX_FILES", 200))
|