{"id":84434,"date":"2020-05-15T08:06:56","date_gmt":"2020-05-15T00:06:56","guid":{"rendered":"http:\/\/4563.org\/?p=84434"},"modified":"2020-05-15T08:06:56","modified_gmt":"2020-05-15T00:06:56","slug":"%e8%90%8c%e6%96%b0%e6%b1%82%e6%95%99%e5%85%b3%e4%ba%8e-nginx-%e5%8f%8d%e4%bb%a3-github%ef%bc%8c%e5%ae%9e%e7%8e%b0-release-%e4%b8%8b%e8%bd%bd%e5%8a%a0%e9%80%9f%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=84434","title":{"rendered":"\u840c\u65b0\u6c42\u6559\u5173\u4e8e NGINX \u53cd\u4ee3 github\uff0c\u5b9e\u73b0 release \u4e0b\u8f7d\u52a0\u901f\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u840c\u65b0\u6c42\u6559\u5173\u4e8e NGINX \u53cd\u4ee3 github\uff0c\u5b9e\u73b0 release \u4e0b\u8f7d\u52a0\u901f\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e4b\u524d\u5728\u793e\u533a\u770b\u5230\u8fc7\u51e0\u4e2a\u5927\u4f6c\u53d1\u7684 github \u955c\u50cf\u7ad9\u7684\u5730\u5740\uff0c\u611f\u89c9\u751a\u662f\u597d\u7528\uff0c\u4e8e\u662f\u81ea\u5df1\u4e5f\u60f3\u6574\u7740\u73a9\u3002\u3002<br \/> \u65e0\u5948\u534a\u8def\u51fa\u5bb6\uff0c\u5f88\u591a\u4e1c\u897f\u90fd\u662f\u7f51\u4e0a\u76f4\u63a5\u627e\u6559\u7a0b\u5543\u73b0\u6210\u7684\uff0c\u6240\u4ee5\u5b66\u827a\u4e0d\u7cbe\uff0c\u4e5f\u90fd\u662f\u4e00\u4e9b\u5c0f\u5174\u8da3\uff0c\u5b8c\u5168\u4ece\u5934\u5b66 nginx \u4f30\u8ba1\u4e5f\u5b66\u4e0d\u4e0b\u53bb\u3002\u3002\u539a\u7740\u8138\u76ae\u8fc7\u6765\u4f38\u624b\u8bf7\u6559\uff0c\u671b\u5404\u4f4d\u5927\u4f6c\u8d50\u6559\uff01\uff01<br \/> \u76f4\u63a5\u8d34\u4ee3\u7801\u5427\uff0c\u4e0b\u9762\u662f\u6211\u73b0\u5728\u7528\u7684 nginx \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u53cd\u4ee3 github.com \u548c raw.githubusercontent.com \u7684\u53cd\u4ee3\uff0c\u70b9 raw \u4ee3\u7801\uff0c\u4e5f\u4e0d\u4f1a\u8df3\u53bb raw.githubusercontent.com \u7ad9\uff0c\u800c\u662f\u8f6c\u6210\u81ea\u5df1\u7684\u57df\u540d\u663e\u793a\u51fa\u6765\u7684\u3002\u3002\u4f46\u662f\u5982\u679c\u53bb release \u9875\u9762\u4e0b\u8f7d zip \u6216 ext \u4e4b\u7c7b\u7684\u5305\uff0c\u5219\u6700\u7ec8\u4f1a\u76f4\u63a5\u4ece s3.amazonaws.com \u4e4b\u7c7b\u7684\u5730\u65b9\u4e0b\u8f7d\uff0c\u5982\u4f55\u5b9e\u73b0 release \u90e8\u5206\u4e5f\u53cd\u4ee3\u4e0b\u8f7d\u5462\uff1f<\/p>\n<pre><code>server {     listen 443 ssl http2 reuseport;     server_name MY.DOMAIN.COM;      ssl_certificate       \/etc\/nginx\/ssl\/certificate.cer;     ssl_certificate_key   \/etc\/nginx\/ssl\/certificate.key;      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;     ssl_session_timeout      1d;     ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+ECDSA+AES128:EECDH+aRSA+AES128:RSA+AES128:EECDH+ECDSA+AES256:EECDH+aRSA+AES256:RSA+AES256:EECDH+ECDSA+3DES:EECDH+aRSA+3DES:RSA+3DES:!MD5;     ssl_prefer_server_ciphers on;     ssl_session_cache        shared:SSL:50m;     ssl_session_tickets      on;     ssl_stapling             on;      resolver 8.8.8.8;      proxy_intercept_errors on;      recursive_error_pages on;          location \/ {         proxy_cache_valid  200 301 302 1d;              proxy_set_header X-Real-IP $remote_addr;         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header Referer https:\/\/github.com\/;         proxy_set_header Host github.com;         proxy_pass https:\/\/github.com\/;              error_page 302 = @error_page_302;     }          location @error_page_302 {         proxy_set_header X-Real-IP $remote_addr;         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_set_header Referer https:\/\/github.com\/;         proxy_set_header Host raw.githubusercontent.com;         set $download $upstream_http_location;         proxy_pass $download;     } } <\/code><\/pre>\n<h3>\u5728\u6b64\u8c22\u8fc7\u5404\u4f4d\u5927\u4f6c\u4e86\uff01\uff01<\/h3>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1548910\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhengfan2016 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u4e0d\u7528 nginx\uff0c\u76f4\u63a5\u767d\u5ad6 cloudflare \u7684\u670d\u52a1\uff0c\u5168\u7403 cdn \u52a0\u901f\uff0c\u81ea\u5df1\u4e00\u5206\u94b1\u90fd\u4e0d\u7528\u51fa <br \/>https:\/\/github.com\/hunshcn\/gh-proxy                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548911\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : varrily <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             zip \u662f 302 \u5230\u4e86 s3\uff0c\u4f60\u662f\u7684\u4ee3\u7406\u4e5f\u53ea\u662f\u5b9e\u73b0\u4e86\u540c\u6837\u7684 302 \u529f\u80fd\u3002\u5e94\u8be5\u662f\u8fd9\u6837\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548912\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zhengfan2016 \u8bdd\u867d\u5982\u6b64\u3002\u3002\u4f46\u662f\u8fd8\u662f\u60f3\u81ea\u5df1\u53cd\u4ee3\u7740\u73a9\u3002\u3002\u91cd\u70b9\u662f\u6211\u81ea\u5df1\u7684 vps \u901f\u5ea6\u771f\u7684\u5f88\u5feb\uff0c\u53cd\u4ee3\u4e86 github \u7528\u8d77\u6765\u5f88\u723d\u3002\u3002\u5e94\u8be5\u6bd4 CF \u5feb\u3002\u3002<\/p>\n<p>@varrily \u6ca1\u592a\u7406\u89e3\u5927\u4f6c\u7684\u610f\u601d\u3002\u3002\u610f\u601d\u6211\u6539\u4e00\u6539\u5c31\u80fd\u5230 s3 \u4e86\uff0c\u8fd8\u662f\u8bf4\uff0c\u5b9e\u73b0\u4e0d\u4e86\u3002\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548913\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mengyx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cshenxi Release \u7684\u5b9e\u9645\u4e0b\u8f7d\u5730\u5740\u662f\u8df3\u8f6c\u5230 s3 \u7684\u3002\u5982\u679c\u60f3\u5b9e\u73b0\uff0c\u90a3\u4f60\u5e94\u8be5\u628a s3.amazonaws.com \u4e5f\u53cd\u4ee3\u4e86\u3002<br \/>\u800c\u4e14 release \u8df3\u8f6c\u7684\u65f6\u5019\uff0c\u4f60\u8fd8\u5f97\u4fee\u6539\u8df3\u8f6c\u7684\u7684\u5730\u5740\u5230\u4f60\u53cd\u4ee3\u7684\u5730\u5740\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548914\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mengyx \u4f46\u662f\u6709\u4e00\u70b9\u6211\u4e00\u76f4\u5230\u73b0\u5728\u90fd\u641e\u4e0d\u5b9a\uff0c\u5c31\u662f\u8df3\u8f6c\u5230\u7684 s3 \u4e0d\u662f\u56fa\u5b9a\u7684\u7f51\u5740\uff0c\u6bcf\u6b21\u90fd\u4f1a\u53d8 xxxx-xxx-xxx.s3.amazonaws.com \uff0c\u6bcf\u6b21\u524d\u9762\u7684\u90fd\u4e0d\u4e00\u6837\uff0c\u8fd9\u6837\u600e\u4e48\u53cd\u4ee3\u5462\u3002\u3002\u5982\u679c\u50cf raw.githubusercontent.com \u90a3\u6837\u662f\u56fa\u5b9a\u7684\uff0c\u6211\u5e94\u8be5\u8bd5\u8bd5\u5c31\u80fd\u5f04\u51fa\u6765\u4e86\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548915\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5173\u4e8e\u8df3\u8f6c\u53cd\u4ee3\u7684\u90e8\u5206\uff0c\u6700\u8ba9\u6211\u641e\u4e0d\u5b9a\uff0c\u65e0\u4ece\u4e0b\u624b\u7684\u90e8\u5206\u662f\u8df3\u8f6c s3 \u90e8\u5206\u7684\u7f51\u5740\u6bcf\u6b21\u90fd\u4f1a\u53d8\uff0c\u4f8b\u5982 <br \/>`https:\/\/github.com\/ginuerzh\/gost\/releases\/download\/v2.11.0\/gost-linux-amd64-2.11.0.gz` <br \/>\u76f4\u63a5\u53f3\u952e\u5f97\u5230\u8fd9\u6837\u4e00\u4e2a\u94fe\u63a5 <br \/>\u70b9\u51fb\u540e\u4f1a\u8df3\u8f6c\u5230 <br \/>`https:\/\/github-production-release-asset-2e65be.s3.amazonaws.com\/xxxxxxxxxxxxxx`<br \/>\u540e\u9762\u50cf\u4e71\u7801\u4e00\u6837\u4e5f\u975e\u5e38\u591a\u4e00\u957f\u4e32\uff0c\u91cd\u70b9\u662f\u524d\u9762\u7684 s3 \u4e4b\u524d\u7684\u90e8\u5206\u6bcf\u6b21\u4e5f\u4f1a\u53d8\u3002\u3002\u90a3\u6211\u8981\u600e\u4e48\u5904\u7406\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548916\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mengyx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cshenxi \u5927\u6982\u60f3\u5230\u4e24\u79cd\u65b9\u6848<br \/>1. \u7528\u6cdb\u57df\u540d\u7ed1\u5b9a\uff08\u914d\u7f6e\u65b9\u6cd5\u81ea\u884c\u641c\u7d22\uff09<br \/>\u5b9e\u73b0 xxx.s3.amazonaws.com\/any-path?any-query =&gt; xxx.your-domain.com\/any-path?any-query<\/p>\n<p>2. \u5728 Path \u91cc\u9762\u4f20\u9012\u5b50\u57df\u540d\u4fe1\u606f<br \/>xxx.s3.amazonaws.com\/any-path?any-query =&gt; your-domain.com\/xxx\/any-path?any-query                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548917\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mengyx \u611f\u8c22\u5927\u4f6c\u63d0\u70b9 \u3002\u3002\u6211\u53bb\u627e\u627e\u3002\u3002\u5173\u4e8e 1.\uff0c\u662f\u4e0d\u662f\u53ef\u4ee5\u8003\u8651\u3002\u3002\u6216\u8005\u5927\u6982\u7387\u7528\u6b63\u5219\u6765\u505a\u5339\u914d\u4e4b\u7c7b\u7684\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548918\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mengyx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cshenxi \u5dee\u4e0d\u591a\u5427 \u641c\u4e00\u4e0b \u201cnginx \u6cdb\u89e3\u6790\u201d \u633a\u591a\u6587\u7ae0\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548919\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mengyx \u611f\u8c22\u5927\u4f6c\uff01\uff01\u6211\u518d\u53bb\u5b66\u4e60\u5b66\u4e60                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548920\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709 http \u4ee3\u7406\u5f62\u5f0f\u4e0d\u597d\u5417\u4e3a\u5565\u8981\u53cd\u4ee3\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548921\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @love http \u4ee3\u7406\u662f\u6307\u4ee3\u7406\u8bbf\u95ee\u5417\u3002\u3002\u6709\u65f6\u5019\u60f3\u8ba9\u522b\u4eba\u8bbf\u95ee\u5feb\u70b9\u3002\u3002\u6216\u8005\u5728\u5176\u4ed6\u5730\u65b9\u81ea\u5df1\u4e0d\u65b9\u4fbf http \u3002\u3002\u5982\u679c\u53cd\u4ee3\u5c31\u975e\u5e38\u65b9\u4fbf\u4e86\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548922\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : neteroster <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u770b\u770b\u8fd9\u4e2a<\/p>\n<p>https:\/\/github.com\/hunshcn\/gh-proxy                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548923\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @neteroster \u8c22\u8c22\u5927\u4f6c\uff0c\u6211\u770b\u4e86\u8fd9\u4e2a\uff0c\u7136\u540e\u62c9\u4e0b\u6765\u89c2\u6469\u4e86\u4e00\u4e0b\u3002\u3002\u53d1\u73b0 nginx \u597d\u50cf\u53ea\u88ab\u7528\u6765\u5f53\u4f5c\u663e\u793a\u7f51\u9875\u7684\u5de5\u5177\u3002\u3002\u4e3b\u8981\u662f\u9760 python \u5b9e\u73b0\u7684\u5427\u3002\u3002\u8fd9\u79cd\u6211\u73a9\u4e0d\u6765\u5509\u3002\u3002\u53ea\u60f3\u641e\u4e00\u4e2a nginx \u7684\u7b80\u5355\u53cd\u4ee3\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1548924\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : cshenxi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u611f\u8c22\u4e0a\u5404\u4f4d\u5927\u4f6c\u7684\u56de\u590d\uff0c\u679c\u7136\u8fd8\u662f\u6211\u5bf9 nginx \u592a\u840c\u65b0\u4e86\u3002\u3002\u628a proxy_set_header Host \u6539\u6389\u5c31\u5b9e\u73b0\u4e86\uff0c\u518d\u6b21\u611f\u8c22\u5927\u5bb6\u652f\u62db\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u840c\u65b0\u6c42\u6559\u5173\u4e8e NGINX \u53cd\u4ee3 g&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84434"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84434"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84434\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84434"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}