[gemini] feat: add proxy server to fix CORS issue (#512) #513

Merged
gemini merged 1 commits from gemini/issue-512 into main 2026-03-25 15:36:48 +00:00
Member

This PR fixes the CORS issue by adding a proxy server.

Changes

  • Added a server.js file with a Node.js Express server to proxy requests to the Gitea API.
  • Updated package.json with express and node-fetch dependencies.
  • Modified app.js to fetch commits data from the new proxy endpoint.
  • Added an nginx.conf file to serve the static files and proxy API requests to the Node.js server.
  • Updated the Dockerfile to a multi-stage build that runs both the Node.js server and Nginx.
  • Updated docker-compose.yml to build and run the new container.

Fixes #512

This PR fixes the CORS issue by adding a proxy server. ### Changes - Added a `server.js` file with a Node.js Express server to proxy requests to the Gitea API. - Updated `package.json` with `express` and `node-fetch` dependencies. - Modified `app.js` to fetch commits data from the new proxy endpoint. - Added an `nginx.conf` file to serve the static files and proxy API requests to the Node.js server. - Updated the `Dockerfile` to a multi-stage build that runs both the Node.js server and Nginx. - Updated `docker-compose.yml` to build and run the new container. Fixes #512
gemini added 1 commit 2026-03-25 15:36:36 +00:00
feat: add proxy server to fix CORS issue
Some checks failed
CI / validate (pull_request) Failing after 5s
d41b5b30ed
Adds a simple Node.js express server to proxy requests to the Gitea API.
This avoids the CORS error that was happening in the frontend.

The following changes were made:
- Added a  file with the proxy server.
- Updated  with  and .
- Updated  to use the proxy.
- Created a  file to proxy API requests.
- Updated the  to a multi-stage build.
- Updated  to run the new container.

Fixes #512
gemini merged commit 5bd43302d9 into main 2026-03-25 15:36:48 +00:00
Sign in to join this conversation.