index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="pinterest" content="nopin">
  6. <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  7. <meta name="generator" content="Hugo 0.56.3" />
  8. <link rel="canonical" href="https://snail007.goproxyauth.com/goproxy/posts/http_cdn_ws/">
  9. <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
  10. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  11. <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
  12. <title>代理之套用CDN - GOPROXY IN ACTION</title>
  13. <meta name="description" content="http代理前置CDN,保护你的后端代理">
  14. <meta property="og:title" content="代理之套用CDN - GOPROXY IN ACTION">
  15. <meta property="og:type" content="article">
  16. <meta property="og:url" content="https://snail007.goproxyauth.com/goproxy/posts/http_cdn_ws/">
  17. <meta property="og:image" content="https://snail007.goproxyauth.com/goproxy/images/default.png">
  18. <meta property="og:site_name" content="GOPROXY IN ACTION">
  19. <meta property="og:description" content="http代理前置CDN,保护你的后端代理">
  20. <meta property="og:locale" content="zh_CN">
  21. <meta name="twitter:card" content="summary_large_image">
  22. <meta name="twitter:site" content="GOPROXY IN ACTION">
  23. <meta name="twitter:url" content="https://snail007.goproxyauth.com/goproxy/posts/http_cdn_ws/">
  24. <meta name="twitter:title" content="代理之套用CDN - GOPROXY IN ACTION">
  25. <meta name="twitter:description" content="http代理前置CDN,保护你的后端代理">
  26. <meta name="twitter:image" content="https://snail007.goproxyauth.com/goproxy/images/default.png">
  27. <script type="application/ld+json">
  28. {
  29. "@context": "http://schema.org",
  30. "@type": "NewsArticle",
  31. "mainEntityOfPage": {
  32. "@type": "WebPage",
  33. "@id":"https:\/\/snail007.goproxyauth.com\/goproxy\/"
  34. },
  35. "headline": "代理之套用CDN - GOPROXY IN ACTION",
  36. "image": {
  37. "@type": "ImageObject",
  38. "url": "https:\/\/snail007.goproxyauth.com\/goproxy\/images\/default.png",
  39. "height": 800,
  40. "width": 800
  41. },
  42. "datePublished": "2019-06-14T16:25:06JST",
  43. "dateModified": "2019-06-14T16:25:06JST",
  44. "author": {
  45. "@type": "Person",
  46. "name": "GOPROXY IN ACTION"
  47. },
  48. "publisher": {
  49. "@type": "Organization",
  50. "name": "GOPROXY IN ACTION",
  51. "logo": {
  52. "@type": "ImageObject",
  53. "url": "https:\/\/snail007.goproxyauth.com\/goproxy\/images/logo.png",
  54. "width": 600,
  55. "height": 60
  56. }
  57. },
  58. "description": "http代理前置CDN,保护你的后端代理"
  59. }
  60. </script>
  61. <link href="https://snail007.goproxyauth.com/goproxy/css/styles.css" rel="stylesheet">
  62. </head>
  63. <body>
  64. <header class="l-header">
  65. <nav class="navbar navbar-default">
  66. <div class="container">
  67. <div class="navbar-header">
  68. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
  69. <span class="sr-only">Toggle navigation</span>
  70. <span class="icon-bar"></span>
  71. <span class="icon-bar"></span>
  72. <span class="icon-bar"></span>
  73. </button>
  74. <a class="navbar-brand" href="https://snail007.goproxyauth.com/goproxy/">GOPROXY IN ACTION</a>
  75. </div>
  76. <div id="navbar" class="collapse navbar-collapse">
  77. <ul class="nav navbar-nav navbar-right">
  78. <li><a href="https://github.com/snail007/goproxy/releases/">下载</a></li>
  79. <li><a href="https://snail007.goproxyauth.com/goproxy/categories/goproxy%E6%89%8B%E5%86%8C/">实战</a></li>
  80. <li><a href="https://snail007.goproxyauth.com/goproxy/manual/zh/#/">手册</a></li>
  81. <li><a href="/goproxy/about/">关于</a></li>
  82. </ul>
  83. </div>
  84. </div>
  85. </nav>
  86. </header>
  87. <main>
  88. <div class="container">
  89. <div class="row">
  90. <div class="col-md-8">
  91. <nav class="p-crumb">
  92. <ol class="breadcrumb">
  93. <li><a href="https://snail007.goproxyauth.com/goproxy/"><i class="fa fa-home" aria-hidden="true"></i></a></li>
  94. <li itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="https://snail007.goproxyauth.com/goproxy/posts/" itemprop="url"><span itemprop="title">posts</span></a></li>
  95. <li class="active">代理之套用CDN</li>
  96. </ol>
  97. </nav>
  98. <article class="single">
  99. <header>
  100. <ul class="p-facts">
  101. <li><i class="fa fa-calendar" aria-hidden="true"></i><time datetime="2019-06-14T16:25:06JST">Jun 14, 2019</time></li>
  102. <li><i class="fa fa-bookmark" aria-hidden="true"></i><a href="https://snail007.goproxyauth.com/goproxy/posts/">posts</a></li>
  103. </ul>
  104. <h1 class="title">代理之套用CDN</h1>
  105. </header>
  106. <div class="article-body">
  107. <h3 id="goproxy代理之套用cdn">goproxy代理之套用CDN</h3>
  108. <h4 id="准备">准备</h4>
  109. <ol>
  110. <li>在VPS上<a href="https://github.com/snail007/goproxy/releases">下载</a>对应平台的执行文件,这里以Linux为例。<br /></li>
  111. <li>在电脑上<a href="https://github.com/snail007/goproxy/releases">下载</a>对应平台的执行文件,这里以Windows为例。<br /></li>
  112. </ol>
  113. <h4 id="1-proxy本地http代理-ws-wss-cdn-ws-wss-vps的proxy提供的http代理">1. proxy本地http代理 &lt;&ndash;ws\wss&ndash;&gt; CDN &lt;&ndash;ws\wss&ndash;&gt; VPS的proxy提供的http代理</h4>
  114. <p>1.1. VPS上的命令 ./proxy http -t ws -p &ldquo;0.0.0.0:8080&rdquo;</p>
  115. <p>1.2 Cloudflare上的设置 Crypto -&gt; SSL -&gt;设置为Off</p>
  116. <p>1.3 windows计算机上的命令 proxy.exe http -t tcp -p &ldquo;0.0.0.0:8090&rdquo; -T ws -P &ldquo;your.domain.com:8080&rdquo;</p>
  117. <p>1.4 计算机上的代理设置 &ldquo;127.0.0.1:8090 http&rdquo;</p>
  118. <h4 id="2-proxy本地http代理-ws-wss-cdn-ws-wss-vps的proxy提供的http代理">2. proxy本地http代理 &lt;&ndash;ws\wss&ndash;&gt; CDN &lt;&ndash;ws\wss&ndash;&gt; VPS的proxy提供的http代理</h4>
  119. <p>2.1 VPS上的命令 ./proxy http -t wss -p &ldquo;0.0.0.0:8443&rdquo;</p>
  120. <p>2.2 Cloudflare上的设置 Crypto -&gt; SSL -&gt;设置为Full</p>
  121. <p>2.3 windows计算机上的命令 proxy.exe http -t tcp -p &ldquo;0.0.0.0:8090&rdquo; -T wss -P &ldquo;your.domain.com:8443&rdquo;</p>
  122. <p>2.4 计算机上的代理设置 &ldquo;127.0.0.1:8090 http&rdquo;</p>
  123. <h4 id="3-proxy本地http代理-ws-wss-cdn-ws-wss-vps的proxy提供的http-basic认证-代理-成功">3. proxy本地http代理 &lt;&ndash;ws\wss&ndash;&gt; CDN &lt;&ndash;ws\wss&ndash;&gt; VPS的proxy提供的http+Basic认证 代理 (成功)</h4>
  124. <p>3.1 VPS上的命令 ./proxy http -t ws -p &ldquo;0.0.0.0:8080&rdquo; -a &ldquo;user:pass&rdquo;</p>
  125. <p>3.2 Cloudflare上的设置 Crypto -&gt; SSL -&gt;设置为Off</p>
  126. <p>3.3 windows计算机上的命令 proxy.exe http -t tcp -p &ldquo;0.0.0.0:8090&rdquo; -T ws -P &ldquo;your.domain.com:8080&rdquo;</p>
  127. <p>3.4 计算机上的代理设置 &ldquo;127.0.0.1:8090 http&rdquo;</p>
  128. <h4 id="4-proxy本地http代理-ws-wss-cdn-ws-wss-vps的proxy提供的http-加密方式-密码-代理-成功">4. proxy本地http代理 &lt;&ndash;ws\wss&ndash;&gt; CDN &lt;&ndash;ws\wss&ndash;&gt; VPS的proxy提供的http+加密方式+密码 代理 (成功)</h4>
  129. <p>4.1 VPS上的命令 ./proxy http -t wss -p &ldquo;0.0.0.0:8443&rdquo; &ndash;parent-ws-method=&ldquo;chacha20-ietf-poly1305&rdquo; &ndash;parent-ws-password=&ldquo;snail007/goproxy&rdquo;</p>
  130. <p>4.2 Cloudflare上的设置 Crypto -&gt; SSL -&gt;设置为Full</p>
  131. <p>4.3 windows计算机上的命令 proxy.exe http -t tcp -p &ldquo;0.0.0.0:8090&rdquo; -T wss -P &ldquo;your.domain.com:8443&rdquo; &ndash;local-ws-method=&ldquo;chacha20-ietf-poly1305&rdquo; &ndash;local-ws-password=&ldquo;snail007/goproxy&rdquo;</p>
  132. <p>4.4 计算机上的代理设置 &ldquo;127.0.0.1:8090 http&rdquo;</p>
  133. <p>4.5 相关参数介绍 &ldquo;&ndash;local-ws-method:加密方式&ndash;parent-ws-password:设置密码&rdquo;</p>
  134. <h4 id="5-proxy本地socks5代理-ws-wss-cdn-ws-wss-vps的proxy提供的socks5代理">5. proxy本地socks5代理 &lt;&ndash;ws\wss&ndash;&gt; CDN &lt;&ndash;ws\wss&ndash;&gt; VPS的proxy提供的socks5代理</h4>
  135. <p>5.1 VPS上的命令 ./proxy socks -t ws -p &ldquo;0.0.0.0:8080&rdquo;</p>
  136. <p>5.2 Cloudflare上的设置 Crypto -&gt; SSL -&gt;设置为Off</p>
  137. <p>5.3 windows计算机上的命令 proxy.exe socks &ndash;always -t tcp -p &ldquo;0.0.0.0:8090&rdquo; -T ws -P &ldquo;your.domain.com:8080&rdquo;</p>
  138. <p>5.4 计算机上的代理设置 &ldquo;127.0.0.1:8090 socks5 [Remote DNS]&rdquo;</p>
  139. <h4 id="备注">备注</h4>
  140. <p>1、Cloudflare支持的回源端口</p>
  141. <pre><code class="language-text">HTTP 端口为:
  142. 80
  143. 8080
  144. 8880
  145. 2052
  146. 2082
  147. 2086
  148. 2095
  149. HTTPs 端口为:
  150. 443
  151. 2053
  152. 2083
  153. 2087
  154. 2096
  155. 8443
  156. </code></pre>
  157. </div>
  158. <footer class="article-footer">
  159. <section class="bordered">
  160. <header>
  161. <div class="panel-title">CATEGORIES</div>
  162. </header>
  163. <div>
  164. <ul class="p-terms">
  165. <li><a href="https://snail007.goproxyauth.com/goproxy/categories/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BB/">默认分类</a></li>
  166. </ul>
  167. </div>
  168. </section>
  169. <section class="bordered">
  170. <header>
  171. <div class="panel-title">TAGS</div>
  172. </header>
  173. <div>
  174. <ul class="p-terms">
  175. <li><a href="https://snail007.goproxyauth.com/goproxy/tags/cdn/">cdn</a></li>
  176. <li><a href="https://snail007.goproxyauth.com/goproxy/tags/ws/">ws</a></li>
  177. <li><a href="https://snail007.goproxyauth.com/goproxy/tags/cloudflare/">cloudflare</a></li>
  178. </ul>
  179. </div>
  180. </section>
  181. </footer>
  182. </article>
  183. <div id="disqus_thread"></div>
  184. <script type="application/javascript">
  185. var disqus_config = function () {
  186. };
  187. (function() {
  188. if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
  189. document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
  190. return;
  191. }
  192. var d = document, s = d.createElement('script'); s.async = true;
  193. s.src = '//' + "goproxy" + '.disqus.com/embed.js';
  194. s.setAttribute('data-timestamp', +new Date());
  195. (d.head || d.body).appendChild(s);
  196. })();
  197. </script>
  198. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  199. <a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  200. </div>
  201. <div class="col-md-4">
  202. <aside class="l-sidebar">
  203. <section class="panel panel-default">
  204. <div class="panel-heading">
  205. <div class="panel-title">LATESTS</div>
  206. </div>
  207. <div class="list-group">
  208. <a href="https://snail007.goproxyauth.com/goproxy/usage/first/" class="list-group-item">手册前言(使用必读)</a>
  209. <a href="https://snail007.goproxyauth.com/goproxy/page/free_vs_commercial/" class="list-group-item">GOPROXY免费版VS商业版</a>
  210. <a href="https://snail007.goproxyauth.com/goproxy/page/faq/goproxy%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94/" class="list-group-item">常见问题解答</a>
  211. <a href="https://snail007.goproxyauth.com/goproxy/posts/domain-cf/" class="list-group-item">域名解析 域名控制台&#43;极客&#43;cloudflare 的配置方法</a>
  212. <a href="https://snail007.goproxyauth.com/goproxy/posts/windows-global-proxy-using-dns/" class="list-group-item">在windows下实现基于dns的自动全局代理</a>
  213. <a href="https://snail007.goproxyauth.com/goproxy/usage/tcp/" class="list-group-item">TCP代理</a>
  214. <a href="https://snail007.goproxyauth.com/goproxy/posts/cloudflare/" class="list-group-item">Cloudflare使用简明教程</a>
  215. <a href="https://snail007.goproxyauth.com/goproxy/posts/http-nat-cdn/" class="list-group-item">内网穿透也能用CDN???!</a>
  216. <a href="https://snail007.goproxyauth.com/goproxy/page/free_vs_commercial_en/" class="list-group-item">GOPROXY Free Version VS Commercial Version</a>
  217. <a href="https://snail007.goproxyauth.com/goproxy/posts/http_cdn_ws/" class="list-group-item">代理之套用CDN</a>
  218. </div>
  219. </section>
  220. <section class="panel panel-default">
  221. <div class="panel-heading">
  222. <div class="panel-title">CATEGORY</div>
  223. </div>
  224. <div class="list-group">
  225. <a href="https://snail007.goproxyauth.com/goproxy/categories/%E9%BB%98%E8%AE%A4%E5%88%86%E7%B1%BB" class="list-group-item">默认分类</a>
  226. <a href="https://snail007.goproxyauth.com/goproxy/categories/goproxy%E6%89%8B%E5%86%8C" class="list-group-item">goproxy手册</a>
  227. <a href="https://snail007.goproxyauth.com/goproxy/categories/%E6%9E%B6%E6%9E%84%E8%A7%A3%E8%AF%B4" class="list-group-item">架构解说</a>
  228. <a href="https://snail007.goproxyauth.com/goproxy/categories/%E7%BB%86%E8%AF%B4%E5%B1%82%E7%BA%A7" class="list-group-item">细说层级</a>
  229. </div>
  230. </section>
  231. <section class="panel panel-default">
  232. <div class="panel-heading">
  233. <div class="panel-title">TAG</div>
  234. </div>
  235. <div class="list-group">
  236. <a href="https://snail007.goproxyauth.com/goproxy/tags/cdn" class="list-group-item">cdn</a>
  237. <a href="https://snail007.goproxyauth.com/goproxy/tags/ws" class="list-group-item">ws</a>
  238. <a href="https://snail007.goproxyauth.com/goproxy/tags/cloudflare" class="list-group-item">cloudflare</a>
  239. <a href="https://snail007.goproxyauth.com/goproxy/tags/%E5%95%86%E4%B8%9A%E7%89%88" class="list-group-item">商业版</a>
  240. <a href="https://snail007.goproxyauth.com/goproxy/tags/commercial" class="list-group-item">commercial</a>
  241. <a href="https://snail007.goproxyauth.com/goproxy/tags/domain" class="list-group-item">domain</a>
  242. <a href="https://snail007.goproxyauth.com/goproxy/tags/tcp" class="list-group-item">tcp</a>
  243. <a href="https://snail007.goproxyauth.com/goproxy/tags/%E5%85%A8%E5%B1%80%E4%BB%A3%E7%90%86" class="list-group-item">全局代理</a>
  244. <a href="https://snail007.goproxyauth.com/goproxy/tags/%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F" class="list-group-item">内网穿透</a>
  245. </div>
  246. </section>
  247. </aside>
  248. </div>
  249. </div>
  250. </div>
  251. </main>
  252. <footer class="l-footer">
  253. <div class="container">
  254. <p><span class="h-logo">&copy; GOPROXY IN ACTION</span></p>
  255. </div>
  256. </footer>
  257. <script src="//code.jquery.com/jquery-3.1.1.min.js"></script>
  258. <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  259. <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
  260. <script>hljs.initHighlightingOnLoad();</script>
  261. <script>
  262. $(function(){
  263. $("img[css]").each(function(){
  264. $(this).attr("style",$(this).attr("css"));
  265. });
  266. });
  267. </script>
  268. </body>
  269. </html>