Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgl/gitlab-source-link-proxy
GitLab Source Link Proxy
https://github.com/rgl/gitlab-source-link-proxy
gitlab source-link
Last synced: 3 months ago
JSON representation
GitLab Source Link Proxy
- Host: GitHub
- URL: https://github.com/rgl/gitlab-source-link-proxy
- Owner: rgl
- Created: 2018-05-20T20:03:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-19T19:38:26.000Z (almost 3 years ago)
- Last Synced: 2024-10-10T18:41:35.251Z (3 months ago)
- Topics: gitlab, source-link
- Language: Go
- Size: 12.7 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Basic Authorization support for GitLab Source Link requests.
You can see this used at [rgl/gitlab-vagrant](https://github.com/rgl/gitlab-vagrant).
# GitLab configuration
Configure GitLab nginx to proxy the Visual Studio requests through our proxy by applying the patch at:
https://github.com/rgl/gitlab-vagrant/blob/master/gitlab-http.conf-gitlab-source-link-proxy.patch
Restart nginx:
```bash
gitlab-ctl restart nginx
```Build the binary:
```bash
make
```Manually run it:
```bash
./dist/gitlab-source-link-proxy_$(go env GOOS)_$(go env GOARCH)/gitlab-source-link-proxy \
--gitlab-base-url https://gitlab.example.com
```Try it:
```bash
http --verify=no -v https://root:[email protected]/example/ubuntu-vagrant/raw/master/.gitignore User-Agent:SourceLink
```Install it as a systemd service:
```bash
# add the gitlab-source-link-proxy user.
groupadd --system gitlab-source-link-proxy
adduser \
--system \
--disabled-login \
--no-create-home \
--gecos '' \
--ingroup gitlab-source-link-proxy \
--home /opt/gitlab-source-link-proxy \
gitlab-source-link-proxy
install -d -o root -g gitlab-source-link-proxy -m 750 /opt/gitlab-source-link-proxy
install -d -o root -g gitlab-source-link-proxy -m 750 /opt/gitlab-source-link-proxy/bin# install the binary.
install -o root -g root -m 555 gitlab-source-link-proxy /opt/gitlab-source-link-proxy/bin# install the systemd service.
cat >/etc/systemd/system/gitlab-source-link-proxy.service <