[gemini] feat: add proxy server to fix CORS issue (#512) #513
Reference in New Issue
Block a user
Delete Branch "gemini/issue-512"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes the CORS issue by adding a proxy server.
Changes
server.jsfile with a Node.js Express server to proxy requests to the Gitea API.package.jsonwithexpressandnode-fetchdependencies.app.jsto fetch commits data from the new proxy endpoint.nginx.conffile to serve the static files and proxy API requests to the Node.js server.Dockerfileto a multi-stage build that runs both the Node.js server and Nginx.docker-compose.ymlto build and run the new container.Fixes #512