{"id":15055462,"url":"https://github.com/link-society/rps-middleware-gitlab","last_synced_at":"2026-01-02T13:09:35.380Z","repository":{"id":239651050,"uuid":"800154368","full_name":"link-society/rps-middleware-gitlab","owner":"link-society","description":"Middleware to facilitate serving Gitlab behind a Reverse Proxy","archived":false,"fork":false,"pushed_at":"2024-06-10T13:06:45.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T23:26:22.882Z","etag":null,"topics":["gitlab","middleware","reverse-proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/link-society.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-13T20:01:15.000Z","updated_at":"2024-06-10T13:06:34.000Z","dependencies_parsed_at":"2024-05-13T21:25:20.388Z","dependency_job_id":"f42bab94-7c8c-4039-9ac8-b5eb3db285f3","html_url":"https://github.com/link-society/rps-middleware-gitlab","commit_stats":null,"previous_names":["link-society/rps-middleware-gitlab"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Frps-middleware-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Frps-middleware-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Frps-middleware-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/link-society%2Frps-middleware-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/link-society","download_url":"https://codeload.github.com/link-society/rps-middleware-gitlab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243523109,"owners_count":20304534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gitlab","middleware","reverse-proxy"],"created_at":"2024-09-24T21:42:21.271Z","updated_at":"2026-01-02T13:09:35.330Z","avatar_url":"https://github.com/link-society.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RPS Middleware - Gitlab\n\nWhen running Gitlab behind a reverse proxy, it can be challenging to handle its\nmisbehaviour regarding the HTTP RFC. This project act as a middleware between\nyour reverse proxy and the proxied Gitlab instance.\n\n## :necktie: Rules\n\n### Fix API Projects\n\nThe Gitlab API for projects expect the repository name (with the namespace) to\nbe URL encoded:\n\n```\n/api/v4/projects/namespace%2Frepository\n```\n\nHowever, most reverse proxies will (rightfully) decode those URLs into:\n\n```\n/api/v4/projects/namespace/repository\n```\n\nWhich will result in a `404 - Not Found` HTTP error.\n\nAs such, this middleware will manually re-encode the last part of the URL before\nproxying the request to the Gitlab.\n\n## :hammer: Build\n\nRequirements:\n\n - Go 1.22+\n\nRun:\n\n```\n$ make\n```\n\n## :memo: Usage\n\nRun (adjust the `REMOTE_URL` variable):\n\n```\n$ export REMOTE_URL=\"https://gitlab.com\"\n$ ./rps-middleware-gitlab\n```\n\nThen, point your reverse proxy to `\u003cYOUR-IP\u003e:8080`.\n\nOr run the Docker image:\n\n```\n$ docker run \\\n    -e REMOTE_URL=\"https://gitlab.com\" \\\n    -p 8080:8080 \\\n    linksociety/rps-middleware-gitlab:latest\n```\n\n\u003e :construction: Docker image has not been published yet\n\n## :balance_scale: License\n\nThis software is distributed in the public domain, see the\n[LICENSE.txt](./LICENSE.txt) document for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-society%2Frps-middleware-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flink-society%2Frps-middleware-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flink-society%2Frps-middleware-gitlab/lists"}