{"id":15690237,"url":"https://github.com/rgl/gitlab-source-link-proxy","last_synced_at":"2025-05-07T23:32:49.958Z","repository":{"id":57624743,"uuid":"134182555","full_name":"rgl/gitlab-source-link-proxy","owner":"rgl","description":"GitLab Source Link Proxy","archived":false,"fork":false,"pushed_at":"2022-03-19T19:38:26.000Z","size":13,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T05:41:30.054Z","etag":null,"topics":["gitlab","source-link"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-20T20:03:52.000Z","updated_at":"2022-06-28T03:19:26.000Z","dependencies_parsed_at":"2022-08-26T22:22:22.373Z","dependency_job_id":null,"html_url":"https://github.com/rgl/gitlab-source-link-proxy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fgitlab-source-link-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fgitlab-source-link-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fgitlab-source-link-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fgitlab-source-link-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/gitlab-source-link-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243042907,"owners_count":20226720,"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","source-link"],"created_at":"2024-10-03T18:08:22.878Z","updated_at":"2025-03-11T13:31:57.717Z","avatar_url":"https://github.com/rgl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Basic Authorization support for GitLab Source Link requests.\n\nYou can see this used at [rgl/gitlab-vagrant](https://github.com/rgl/gitlab-vagrant).\n\n# GitLab configuration\n\nConfigure GitLab nginx to proxy the Visual Studio requests through our proxy by applying the patch at:\n\nhttps://github.com/rgl/gitlab-vagrant/blob/master/gitlab-http.conf-gitlab-source-link-proxy.patch\n\nRestart nginx:\n\n```bash\ngitlab-ctl restart nginx\n```\n\nBuild the binary:\n\n```bash\nmake\n```\n\nManually run it:\n\n```bash\n./dist/gitlab-source-link-proxy_$(go env GOOS)_$(go env GOARCH)/gitlab-source-link-proxy \\\n  --gitlab-base-url https://gitlab.example.com\n```\n\nTry it:\n\n```bash\nhttp --verify=no -v https://root:password@gitlab.example.com/example/ubuntu-vagrant/raw/master/.gitignore User-Agent:SourceLink\n```\n\nInstall it as a systemd service:\n\n```bash\n# add the gitlab-source-link-proxy user.\ngroupadd --system gitlab-source-link-proxy\nadduser \\\n    --system \\\n    --disabled-login \\\n    --no-create-home \\\n    --gecos '' \\\n    --ingroup gitlab-source-link-proxy \\\n    --home /opt/gitlab-source-link-proxy \\\n    gitlab-source-link-proxy\ninstall -d -o root -g gitlab-source-link-proxy -m 750 /opt/gitlab-source-link-proxy\ninstall -d -o root -g gitlab-source-link-proxy -m 750 /opt/gitlab-source-link-proxy/bin\n\n# install the binary.\ninstall -o root -g root -m 555 gitlab-source-link-proxy /opt/gitlab-source-link-proxy/bin\n\n# install the systemd service.\ncat \u003e/etc/systemd/system/gitlab-source-link-proxy.service \u003c\u003cEOF\n[Unit]\nDescription=gitlab-source-link-proxy\nAfter=network.target\n\n[Service]\nType=simple\nUser=gitlab-source-link-proxy\nGroup=gitlab-source-link-proxy\nExecStart=/opt/gitlab-source-link-proxy/bin/gitlab-source-link-proxy --gitlab-base-url https://gitlab.example.com\nWorkingDirectory=/opt/gitlab-source-link-proxy\nRestart=on-abort\n\n[Install]\nWantedBy=multi-user.target\nEOF\nsystemctl enable gitlab-source-link-proxy\nsystemctl start gitlab-source-link-proxy\n```\n\nShow the service status and logs:\n\n```bash\nsystemctl status gitlab-source-link-proxy\njournalctl -u gitlab-source-link-proxy\n```\n\n# Visual Studio configuration\n\nTo be able to step through external source code you need to disable `Enable Just My Code` setting in the `Tools | Options | Debugger` window.\n\nTo be able to download source code you need to configure Visual Studio to authenticate your GitLab domain requests.\n\nFor Visual Studio 15.8+, open the `Tools | Options | Debugger` window and check `Fall back to Git Credential Manager authentication for all Source Link requests`.\n\nFor older versions of Visual Studio 15:\n\n  1. Open the `Developer Command Prompt for VS 2017`\n  2. run `notepad \"%VSINSTALLDIR%\\Common7\\IDE\\CommonExtensions\\Platform\\Debugger\\VsDebugPresentationPackage.pkgdef\"`\n  3. Add your GitLab domain as a Git Credential Manager Authority in the corresponding ini section, e.g.:\n      ```ini\n      [$RootKey$\\Debugger\\GitCredentialManager\\Authorities]\n      \"raw.githubusercontent.com\"=\"https://github.com\"\n      \"gitlab.example.com\"=\"https://gitlab.example.com\"\n      ```\n  4. run `devenv /setup`\n\n# Visual Studio Code OmniSharp configuration\n\nTo be able to step through external source code you need to disable `Just My Code` in the [Debugger Launch Settings](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#just-my-code).\n\n**NB There is no support for accessing private repositories, as it does not support authentication. For more information see the [Source Link options documentation](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#source-link-options) and upvote the [#2071 issue](https://github.com/OmniSharp/omnisharp-vscode/issues/2071).**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fgitlab-source-link-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fgitlab-source-link-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fgitlab-source-link-proxy/lists"}