Skip to content

Commit

Permalink
Refactor reverse proxy handling to include additional URLs for GitHub…
Browse files Browse the repository at this point in the history
… and Gist
  • Loading branch information
arloor committed Oct 13, 2024
1 parent 5955722 commit 5957e2d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ YOUR_DOMAIN:
#### 例子1: Github Proxy
在github原始url前加上`https://YOUR_DOMAIN`,以便在国内访问raw.githubusercontent.com和github.com
在github原始url前加上`https://YOUR_DOMAIN`,以便在国内访问raw.githubusercontent.com、github.com和https://gist.githubusercontent.com
```bash
curl https://YOUR_DOMAIN/https://raw.githubusercontent.com/arloor/iptablesUtils/master/natcfg.sh
Expand All @@ -136,6 +136,14 @@ curl https://YOUR_DOMAIN/https://raw.githubusercontent.com/arloor/iptablesUtils/
```yaml
default_host:
- location: /https://gist.githubusercontent.com
upstream:
scheme_and_authority: https://gist.githubusercontent.com
replacement:
- location: /https://gist.github.com
upstream:
scheme_and_authority: https://gist.github.com
replacement:
- location: /https://github.com
upstream:
scheme_and_authority: https://github.com
Expand Down

0 comments on commit 5957e2d

Please sign in to comment.