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

https://github.com/sbcd90/haproxy-github-https-expose

A simple haproxy config project to expose corporate github behind firewall to internet
https://github.com/sbcd90/haproxy-github-https-expose

Last synced: 4 months ago
JSON representation

A simple haproxy config project to expose corporate github behind firewall to internet

Awesome Lists containing this project

README

          

haproxy-github-https-expose
===========================

A simple haproxy config project to expose corporate github behind firewall to internet.

### Steps

- Install haproxy on Ubuntu

```
sudo apt-get -y install haproxy

haproxy -v

```

- Edit `/etc/haproxy/haproxy.cfg` with content in [haproxy.cfg](config/haproxy.cfg).

- Start haproxy

```
sudo service haproxy restart
```

- Look into ip address with `ifconfig`

- Expose to public internet with `ngrok`.

```
sudo snap install ngrok

ngrok http https://
```

- Get personal access token from corporate Github following [link](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token)

- Set https proxy for github

```
git config --global https.proxy https://****.ngrok.io
```

- Git clone now works!!

```
git clone https://****.ngrok.io//
```

- Unset https proxy for github

```
git config --global --unset https.proxy
```