mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
The /git/ location proxied every path to git-bridge, which made its internal routes reachable from the internet: /status, /health_check, /metrics, /diags, /api/<project>/<key>/postback and the unauthenticated DELETE /api/projects/<project id> used by web on project expiry. Forward only /git/<24 hex project id>[.git]/... (the git smart-HTTP endpoints, which git-bridge protects with Oauth2Filter) and return 404 for everything else under /git/. Web talks to git-bridge directly (GIT_BRIDGE_HOST:GIT_BRIDGE_PORT), not through nginx, so it is not affected.