Skip to content

fix: add HTTP API proxy routes and health check to nginx for microservices - #34

Merged
rsun19 merged 1 commit into
mainfrom
make-nginx-redirect-https
May 11, 2026
Merged

rsun19 merged 1 commit into
mainfrom
make-nginx-redirect-https

Conversation

@rsun19

@rsun19 rsun19 commented May 11, 2026

Copy link
Copy Markdown
Owner

Summary

Adds proxy rules to the HTTP server block in nginx.conf so that internal frontend SSR requests (and the HTTPS redirect server) can route to the correct microservices.

Changes

Added location blocks on the HTTP (port 80) server for each microservice API path:

Path Upstream
/api/v1/stops stops:3003
/api/v1/routes routes:3002
/api/v1/trips routes:3002
/api/v1/alerts alerts:3004
/api/v1/vehicles vehicles:3005
/api/v1/agencies agencies:3001
/health agencies:3001

All other traffic continues to redirect to https://www.trackthemetro.com.

@coderabbitai

coderabbitai Bot commented May 11, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@rsun19 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 13 minutes and 32 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7d1de584-7921-4689-ac97-aa6de6113baf

📥 Commits

Reviewing files that changed from the base of the PR and between 9402f63 and d59a047.

📒 Files selected for processing (1)
  • nginx.conf
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch make-nginx-redirect-https

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rsun19
rsun19 merged commit ed34b29 into main May 11, 2026
10 of 11 checks passed
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