Skip to content

Track nginx config in-repo + OAuth-discovery 404 for MCP connectors - #8

Open
fhwrdh wants to merge 1 commit into
mainfrom
infra/nginx-oauth-404
Open

Track nginx config in-repo + OAuth-discovery 404 for MCP connectors#8
fhwrdh wants to merge 1 commit into
mainfrom
infra/nginx-oauth-404

Conversation

@fhwrdh

@fhwrdh fhwrdh commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Captures the nginx config in version control (it was previously a hand-edit on the droplet) and documents the fix that made the claude.ai connector work: a clean 404 on /.well-known/oauth* so the client treats Tomu as no-OAuth and connects via the path secret, rather than failing OAuth dynamic client registration against the SPA's 200-HTML catch-all.

  • deploy/nginx/tomu.conf + deploy/nginx/tomu-ratelimit.conf — tracked source config
  • docs/SELF-HOSTING.md — nginx block + rationale

Scope note: this makes the config tracked/reproducible. It does not auto-apply to the droplet — the CI pipeline only deploys app code; nginx is still applied manually. Wiring nginx (and other server config) into the deploy pipeline is a separate initiative (infra-as-code issue). The live box already matches this config.

🤖 Generated with Claude Code

Codifies the previously hand-edited droplet nginx config into the repo, and
captures the fix that lets the claude.ai remote connector connect: return a
clean 404 for /.well-known/oauth* so the client treats Tomu as a no-OAuth
server and uses the path-secret URL, instead of failing dynamic client
registration against the SPA's 200-HTML catch-all.

- deploy/nginx/tomu.conf — source site config (all locations incl. the 404)
- deploy/nginx/tomu-ratelimit.conf — the auth rate-limit zone
- docs/SELF-HOSTING.md — nginx block updated + rationale

Note: this tracks the config; applying nginx changes to the box is still
manual (see the infra-as-code issue). Live droplet already matches.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant