Fix env var loading for Docker: support GITEA_TOKEN fallback, configurable Paperclip DB URL

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 10:18:24 +00:00
parent 0593fe9b01
commit 0dfb42ab00
2 changed files with 5 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ def _host() -> str:
def _token() -> str:
return os.environ.get("GITEA_ACCESS_TOKEN", "")
return os.environ.get("GITEA_ACCESS_TOKEN") or os.environ.get("GITEA_TOKEN", "")
async def create_repo(case_number: str, title: str, description: str = "") -> dict: