CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

feat(api): HOST env for loopback binding (bare-metal deploy) #4074

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/google-oauth-setup-UYn0Rmainopened Jun 11, 2026
ccantynzcommented Jun 11, 2026

Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/57


What

Bare-metal deploy (gluecron / Ubuntu + systemd) runs the API behind a reverse proxy that terminates TLS, so the server should bind loopback only.

Adds a HOST env var (default 0.0.0.0 to preserve current behaviour) and passes it as the Bun serve hostname.

HOST=127.0.0.1 PORT=4100 bun run start

Verification

  • bun run typecheck (api) ✅
  • Boots and binds loopback: HOST=127.0.0.1 PORT=4100GET 127.0.0.1:4100/health returns HTTP 200

https://claude.ai/code/session_01McgJLnTbZG9mwhfwd5iAX3


Generated by Claude Code

ccantynzcommented Jun 11, 2026

Originally written by @vercel[bot] on GitHub.


Deployment failed with the following error:

There is no GitHub account connected to this Vercel account.
ccantynzcommented Jun 11, 2026

Originally written by @vercel[bot] on GitHub.


The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
alec-rae-com-admin Ready Ready Preview, Comment Jun 11, 2026 4:09am

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts