Files
gcontext/api/app/settings.py
T
bernatsamperaandClaude Fable 5 aca7523754 Add workflows API, the marketplace backend (marketplace task 3b)
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>
2026-08-08 13:15:47 +02:00

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))