{"id":529087,"date":"2021-08-26T08:27:40","date_gmt":"2021-08-26T00:27:40","guid":{"rendered":"http:\/\/4563.org\/?p=529087"},"modified":"2021-08-26T08:27:40","modified_gmt":"2021-08-26T00:27:40","slug":"cloudflare-workers%e7%9a%84%e5%8f%8d%e4%bb%a3%e5%8a%9f%e8%83%bd%e4%b8%8d%e5%a4%9f%e5%bc%ba%e6%82%8d%e5%95%8a","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=529087","title":{"rendered":"cloudflare workers\u7684\u53cd\u4ee3\u529f\u80fd\u4e0d\u591f\u5f3a\u608d\u554a"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>xshell<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>cloudflare workers\u7684\u53cd\u4ee3\u529f\u80fd\u4e0d\u591f\u5f3a\u608d\u554a<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 xshell \u4e8e 2021-8-25 23:37 \u7f16\u8f91 <\/p>\n<p> cloudflare workers\u7684\u53cd\u4ee3\u65e0\u6cd5\u66ff\u6362m3u8\u91cc\u9762\u7684\u5185\u5bb9\uff0c\u4f8b\u5982\u66ff\u6362m3u8\u91cc\u9762key\u7684\u7f51\u5740\u3002nginx\u53cd\u4ee3\u662f\u53ef\u4ee5\u66ff\u6362\u7684<\/p>\n<p>  \u66ff\u6362\u4ee3\u7801<br \/>  \/\/ Replace texts.<br \/>  const replace_dict = {<br \/>  &nbsp; &nbsp; &#8216;$upstream&#8217;: &#8216;$custom_domain&#8217;,<br \/>  &nbsp; &nbsp; &#8216;https:\/\/xxx.xyz&#8217; : &#8216;https:\/\/xxx\/api&#8217;<br \/>  }<\/p>\n<p>  \u8fd8\u6709\u522b\u7684\u66ff\u6362\u65b9\u5f0f\u5417\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Josephus<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tcf workers \u53ef\u4ee5\uff0c\u662f\u4f60\u4e0d\u4f1a\uff0c\u81ea\u5df1\u8ba4\u771f\u770b\u4ee3\u7801\u53bb\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hqt<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u662f\u4f60\u4e0d\u4f1a\u5199\u4ee3\u7801\u3002\u3002<br \/>  \u4eba\u5bb6\u662fjs\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xshell<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thqt \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-8-25 23:35<br \/>  \u662f\u4f60\u4e0d\u4f1a\u5199\u4ee3\u7801\u3002\u3002<br \/>  \u4eba\u5bb6\u662fjs<\/p>\n<p> \u7528\u7684\u7f51\u4e0a\u7684\u4ee3\u7801\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u83dc\u5355<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u7684\u57df\u540d\u771f\u4e0d\u9519\uff0c\u4e09\u5b57\u6bcd\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>CCCP<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u8bb0\u5f97\u6709\u53cd\u4ee3\u529f\u80fd\u7684cf js\u4ee3\u7801\u7684https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xshell<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tCCCP \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-8-25 23:37<br \/>  \u6211\u8bb0\u5f97\u6709\u53cd\u4ee3\u529f\u80fd\u7684cf js\u4ee3\u7801\u7684<\/p>\n<p> \u5c31\u662f\u7528\u7684\u53cd\u4ee3js\u4ee3\u7801 \u65e0\u6cd5\u66ff\u6362m3u8\u91cc\u9762\u7684\u5185\u5bb9\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>xshell \u5927\u4f6c\u6709\u8bdd\u8bf4 : cl&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\/529087"}],"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=529087"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/529087\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=529087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=529087"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=529087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}