Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

Commit 5790879

Browse files
readme
1 parent af15021 commit 5790879

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
# GitHhub Pages Basic Auth Proxy
2-
## by comSysto
1+
# GitHhub Pages Basic Auth Proxy by comSysto
32

3+
## 1. Introduction
44
A simple python based proxy to secure github pages via a small cloud-proxy-instance.
55

66
:bangbang: THIS IS WORK IN PROGRESS. PRE-ALPHA :bangbang:
77

8-
### Who needs this?
8+
### 1.1 Who needs this?
99

1010
If you have a private github repository.
1111
If you have a `gh-pages` branch in that repository.
1212
And if you want to secure the gh-pages page via basic auth, then this proxy is for you
1313

14-
### What it will do
14+
### 1.2 What it will do
1515

1616
![](./doc/basic-proxy.png)
1717

1818
* Proxy between GitHub Pages and User
1919
* Ask for Authentication
2020
* Only proxy through if user is member of GitHub Organization or in list of users allowed to access
2121

22-
### How is this secure?
22+
### 1.3 How is this secure?
2323

2424
* Basically `gh-pages` URLs are public
2525
* BUT if you create a directory in your `gh-pages` branch which is called `ibjsda67d79gds8a9sd88` and proxy to this dir, it will be secure as long as no one knows this "obfuscator-dir"
2626

27-
# Installation
27+
## 2. Installation
2828

2929
We will do demo setup for the following scenario:
3030

3131
* GitHub Page we want to secure:
32-
** https://comsysto.github.io/github-pages-basic-auth-proxy/086e41eb6ff7a50ad33ad742dbaa2e70b75740c4950fd5bbbdc71981e6fe88e3/
33-
** (this is a gh-pages branch of a public repo. In real scenario this would be a private repo)
34-
** Contents of gh-pages: https://github.com/...
32+
* https://comsysto.github.io/github-pages-basic-auth-proxy/086e41eb6ff7a50ad33ad742dbaa2e70b75740c4950fd5bbbdc71981e6fe88e3/
33+
* (this is a gh-pages branch of a public repo. In real scenario this would be a private repo)
34+
* Contents of gh-pages: https://github.com/...
3535
* Proxy-URL we want to use:
36-
** https://my-secure-github-page.comsysto.com/
37-
** This is a `ec2.micro` Instance on AWS.
36+
* https://my-secure-github-page.comsysto.com/
37+
* This is a `ec2.micro` Instance on AWS.
3838

39-
## Prerequisites
39+
### 2.1 Prerequisites
4040

4141
* You will need nginx and python.
4242

43-
## nginx setup
43+
### 2.2 nginx setup
4444

4545
We need some kind of vhost with SSL that proxies everything through to our python proxy.
4646

@@ -63,7 +63,7 @@ server {
6363
}
6464
```
6565

66-
## python proxy setup
66+
### 2.3 python proxy setup
6767

6868
The python proxy runs as WSGI standalone process on port 8881.
6969

0 commit comments

Comments
 (0)