Repository navigation
feat: add template for Tera Router AI gateway - #1319
Merged
Merged
Conversation
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
I pushed a small fix: the healthcheck used Approved, thanks! |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR about?
New PR of Tera Router — a self-hosted AI router that puts a single OpenAI/Anthropic-compatible gateway in front of all your providers, with a dashboard for accounts, routing, model catalogs, and cost analytics.
Deploys the official
ghcr.io/montara-project/tera-router:v1.23.0image with aheadroomsidecar (ghcr.io/headroomlabs-ai/headroom:0.41.0) for the optional Token Saving feature, and a persistentterarouter-datavolume for the SQLite database (migrations and seeding run on boot).Adaptations from the upstream
deploy/docker-compose.yaml:ports/profilesremoved — dashboard + API routed via Dokploy domain on port8080; the headroom sidecar is included unconditionally (internal-only, protected by a generatedHEADROOM_PROXY_TOKEN)MACHINE_ID(16-bit number →${randomPort}),APP_SECRET(≥32 chars →${base64:48}),ADMIN_EMAIL/ADMIN_PASSWORDfor the seeded dashboard adminAPI_URLset to the public domain — required behind a proxy and written into agent skill guidesCORS_ALLOWED_ORIGINSscoped to the deployed domain (upstream defaults to*)TRUSTED_PROXIESset to private ranges — no published port means all traffic arrives via Traefik, soX-Forwarded-Forcan be trusted/healthhealthcheck kept;SENTRY_DSN,OIDC_*,RATE_LIMIT_EXEMPT_IPSleft out (optional, empty by default)First boot runs migrations and seeds the admin account — sign in with the generated
ADMIN_EMAIL/ADMIN_PASSWORDfrom the environment.Checklist
Before submitting this PR, please make sure that:
Issues related (if applicable)
N/A
Screenshots or Videos