docs: self-hosting deep dive — fix pitfalls and add missing guidance#817
Draft
simple-agent-manager[bot] wants to merge 1 commit intomainfrom
Draft
docs: self-hosting deep dive — fix pitfalls and add missing guidance#817simple-agent-manager[bot] wants to merge 1 commit intomainfrom
simple-agent-manager[bot] wants to merge 1 commit intomainfrom
Conversation
Fixes issues that would trip up self-hosters: - Fix Go version requirement: 1.22+ → 1.25+ (matches go.mod) - Fix `your-org` placeholder URLs → actual repo URL - Fix vague `your-subdomain` DNS references → explain worker naming - Fix `VITE_BASE_DOMAIN` example: `simple-agent-manager.org` → `example.com` - Fix `simple-agent-manager.org` CORS example → `example.com` - Fix manual wrangler.toml: add missing observability D1 database, all 9 Durable Object bindings, Workers AI binding, all cron triggers, and DO migration tags - Fix cost estimation: add Workers AI and Durable Objects rows - Pass VITE_PUBLIC_WEBSITE_URL through deploy workflow so self-hosters' login page doesn't link to simple-agent-manager.org New content: - "Common Pitfalls" section with top 9 self-hosting mistakes - "Post-Deployment Setup" section covering first-user/superadmin flow, REQUIRE_APPROVAL mode, agent types and credential requirements, public website URL config, and smoke test tokens - New troubleshooting entry for Pages custom domain verification - Note about enabling Actions on forks - Updated Table of Contents Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Contributor
Author
Triage Note (2026-04-30)This PR is still in draft status. The self-hosting documentation improvements here are valuable (Common Pitfalls section, Post-Deployment Setup, manual wrangler.toml fixes). Current state:
Action: Leaving as draft per triage policy. When ready to merge, the PR will need:
No changes made. @raphaeltm — let me know if you'd like this finalized and merged. |
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.



Summary
Deep dive into the self-hosting experience. Identified and fixed ~12 issues that would trip up a potential self-hoster.
What changed
Bug fixes:
go.modrequires 1.25+ — build would failyour-orgplaceholder URLs → actual repo URL (raphaeltm/simple-agent-manager)VITE_BASE_DOMAINin web.env.exampledefaulted tosimple-agent-manager.org— misleading for self-hosterssimple-agent-manager.orginstead ofexample.comVITE_PUBLIC_WEBSITE_URLwas never passed through the deploy workflow — self-hosters' login page would link tosimple-agent-manager.orgNew documentation:
REQUIRE_APPROVALmode, agent types + credential requirements per agent, public website URL config, smoke test tokensAudit findings (no code changes needed)
The codebase is well-designed for self-hosting at the infrastructure level:
BASE_DOMAIN— no hardcoded production domains in runtime codeRESOURCE_PREFIXconfigure-secrets.shcorrectly mapsGH_*→GITHUB_*secretsThe only hardcoded
simple-agent-manager.orgin runtime code was theVITE_PUBLIC_WEBSITE_URLfallback inLanding.tsx, which is now overridable via the deploy workflow.Test plan
VITE_PUBLIC_WEBSITE_URL) doesn't break existing deploys (empty string = falls back to default)🤖 Generated with Claude Code