{"id":30791,"date":"2020-02-19T10:36:36","date_gmt":"2020-02-19T02:36:36","guid":{"rendered":"http:\/\/4563.org\/?p=30791"},"modified":"2020-02-19T10:36:36","modified_gmt":"2020-02-19T02:36:36","slug":"caddy%e6%80%8e%e4%b9%88%e7%94%a8cloudflare%e7%9a%84ssl","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=30791","title":{"rendered":"Caddy\u600e\u4e48\u7528cloudflare\u7684SSL?"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>c21xdx<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>Caddy\u600e\u4e48\u7528cloudflare\u7684SSL?<\/h3>\n<p>  \t\t\u5404\u4f4d\u5927\u4f6c\uff0c\u6211\u4e0d\u60f3\u7528\u90a3\u4e2aLet&#8217;s Encrypt\u4ec0\u4e48\u7684SSL\uff0c\u6211\u60f3Caddyfile\u5982\u4e0b\uff1a<br \/>  https:\/\/12345.com {<br \/>  gzip<br \/>  tls {<br \/>  &nbsp; &nbsp; dns cloudflare<br \/>  }<br \/>  proxy \/ 127.0.0.1:3000<br \/>  }<\/p>\n<p>  caady\u4e5f\u662f\u88c5\u7684\u5e26cf\u63d2\u4ef6\u7684\uff0c\u4f46\u662f\u6211 caddy -conf\/path\/Caddyfile\u7684\u65f6\u5019\uff0c\u5b83\u8fd8\u662f\u63d0\u793a\u8981\u8f93\u5165\u90ae\u7bb1\u542f\u7528Let&#8217;s Encrypt\u7684SSL\u3002<br \/>  \u8981\u600e\u4e48\u8bbe\u7f6e\u624d\u80fd\u7528CF\u7684SSL\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u659c\u9633\u665a\u66ae<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u659c\u9633\u665a\u66ae \u4e8e 2020-2-19 10:49 \u7f16\u8f91 <\/p>\n<p> \u4f60\u5148\u628a\u7f51\u7ad9\u6b63\u5e38\u542f\u52a8\u8d77\u6765\uff0c\u7528\u4e0d\u7528ssl\u90fd\u6ca1\u6709\u5173\u7cfb\u3002\u6700\u540e\u8fd8\u662f\u522b\u7528\u3002<br \/>  \u7136\u540e\u518d\u5957\u4e0aCF\u7684CDN\uff0c\u9762\u677f\u5f00\u542f\u4e00\u4e0b\u5177\u4f53\u8bbe\u7f6e\uff0c\u81ea\u52a8\u5c31\u7528CF\u7684ssl\u4e86\u3002<br \/>  \u6ca1\u7528\u8fc7caddy\u7684cf\u63d2\u4ef6\uff0c\u5e94\u8be5\u6ca1\u8fd9\u4e2a\u5fc5\u8981\u5427\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>BJY678<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u90a3\u4e24\u4e2a\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u4e86\u5417\uff1f\u5c31\u662fcf\u7684\u90ae\u7bb1\u548capi\u3002<br \/>  \u5176\u5b9e\u76ee\u6d4bcaddy\u7684\u8fd9\u4e2a\u63d2\u4ef6\u5c31\u662f\u7528dns\u7684\u65b9\u5f0f\u5e2e\u4f60\u7533\u8bf7lets\u7684\u8bc1\u4e66\uff08\u4e0d\u77e5\u9053\u5bf9\u4e0d\u5bf9\uff09\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>c21xdx \u5927\u4f6c\u6709\u8bdd\u8bf4 : Ca&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\/30791"}],"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=30791"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/30791\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30791"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}