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
- Host: GitHub
- URL: https://github.com/sbcd90/haproxy-github-https-expose
- Owner: sbcd90
- Created: 2020-10-29T07:45:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T07:49:20.000Z (over 5 years ago)
- Last Synced: 2025-07-21T04:27:20.090Z (11 months ago)
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```