Skip to content

Add Git-based Oracle API deployment and Cloudflare Pages proxy - #131

Merged
gmalbert merged 4 commits into
mainfrom
codex/react-parity-enhancements
Oct 6, 2026
Merged

gmalbert merged 4 commits into
mainfrom
codex/react-parity-enhancements

Conversation

@gmalbert

@gmalbert gmalbert commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Summary

This pull request adds the Git-based deployment wiring for the React dashboard and FastAPI backend on Cloudflare Pages and the Oracle VM.

  • Add a Cloudflare Pages Function that proxies /api/* requests to the configured F1_API_ORIGIN, validates that the origin is a clean HTTPS origin, and preserves request methods, bodies, and query strings.
  • Add a production Docker Compose service for the API, mounted against the Git checkout read-only, bound to 127.0.0.1:8000 for Cloudflare Tunnel ingress, with restart and memory limits.
  • Correct the backend Docker image working directory and copy paths so the application imports correctly from the repository layout.
  • Add .dockerignore rules to keep Git metadata, local runtimes, caches, and generated cache data out of Docker build contexts.

Deployment and verification

  • Cloudflare Pages production is connected to this Git branch and serves https://data.gridlockedracing.com/.
  • The Pages API proxy is configured with F1_API_ORIGIN=https://api.gridlockedracing.com.
  • The Oracle API was built and started from the Git checkout; /api/health returned healthy with the dataset present, and POST /api/views returned HTTP 200.
  • Confirmed the live Next Race dashboard loads with the formatted tables and without the race or circuit ID columns in Past Results.

Review notes

The Oracle API listens only on loopback; Cloudflare Tunnel provides public API access through api.gridlockedracing.com. No credentials or secrets are included in this change. The API smoke checks were run during deployment; no full test suite was run for this PR.

Run the API from its package directory so app.main imports resolve while the Git checkout is mounted read-only at /repo.
The container reads application data from the read-only Git checkout, stays bound to loopback for Cloudflare Tunnel access, and restarts automatically.
@gmalbert
gmalbert merged commit c36f110 into main Oct 6, 2026
6 checks passed
@gmalbert
gmalbert deleted the codex/react-parity-enhancements branch October 6, 2026 21:34
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