Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 <