Skip to content
Snippets Groups Projects
Commit 5ccd2af1 authored by Stan Hu's avatar Stan Hu
Browse files

Add basic support for proxying GitLab Geo requests

parent 468b4fe7
No related branches found
No related tags found
1 merge request!125WIP: Add basic support for proxying GitLab Geo requests
Pipeline #
Loading
Loading
@@ -33,6 +33,7 @@ type routeEntry struct {
const (
apiPattern = `^/api/`
ciAPIPattern = `^/ci/api/`
geoAPIPattern = `^/api/v[34]/geo/`
gitProjectPattern = `^/([^/]+/){1,}[^/]+\.git/`
projectPattern = `^/([^/]+/){1,}[^/]+/`
)
Loading
Loading
@@ -139,6 +140,9 @@ func (u *Upstream) configureRoutes() {
route("", apiPattern, proxy),
route("", ciAPIPattern, proxy),
 
// GitLab Geo API requests
route("GET", geoAPIPattern, proxy),
// Serve assets
route(
"", `^/assets/`,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment