From 5957e2db84650d7cc34d318db30fbb81713744e3 Mon Sep 17 00:00:00 2001 From: arloor Date: Sun, 13 Oct 2024 12:52:47 +0800 Subject: [PATCH] Refactor reverse proxy handling to include additional URLs for GitHub and Gist --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00a70d1..1fffc24 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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