{"id":1945,"date":"2020-08-19T01:46:17","date_gmt":"2020-08-18T16:46:17","guid":{"rendered":"https:\/\/blog.minatoproject.com\/?p=1945"},"modified":"2020-08-19T01:46:19","modified_gmt":"2020-08-18T16:46:19","slug":"cloudflare%e3%81%a7%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%ae%e8%87%aa%e5%8b%95%e6%9b%b4%e6%96%b0%e3%81%8c%e4%b8%8a%e6%89%8b%e3%81%8f%e3%81%84%e3%81%8b%e3%81%aa%e3%81%8b%e3%81%a3%e3%81%9f%e8%a9%b1","status":"publish","type":"post","link":"https:\/\/blog.minatoproject.com\/?p=1945","title":{"rendered":"Cloudflare\u3067\u8a3c\u660e\u66f8\u306e\u81ea\u52d5\u66f4\u65b0\u304c\u4e0a\u624b\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u8a71"},"content":{"rendered":"<div class=\"veu_autoEyeCatchBox\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_eyecatch-1024x576.png\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_eyecatch-1024x576.png 1024w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_eyecatch-300x169.png 300w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_eyecatch-768x432.png 768w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_eyecatch-320x180.png 320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div>\n<p>1\u30f6\u6708\u632f\u308a\u306e\u6295\u7a3f\u306f\u3053\u306e\u30d6\u30ed\u30b0\u3092\u30db\u30b9\u30c8\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u5468\u308a\u306e\u304a\u8a71\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u5e74\u306e2\u6708\u306b\u3053\u306e\u30c9\u30e1\u30a4\u30f3\u3092Cloudflare\u3068\u3044\u3046CDN\u306b\u767b\u9332\u3057\u3066\u304b\u3089\u3001\u3069\u3046\u3044\u3046\u308f\u3051\u304b\u5225\u306e\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3067\u7ba1\u7406\u3057\u3066\u3044\u308bGit\u306e\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3060\u3051\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u306b\u5931\u6557\u3059\u308b\u4e8b\u8c61\u306b\u898b\u821e\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30b5\u30fc\u30d0\u306fAP\u3092\u5168\u90e8Docker\u3067\u30db\u30b9\u30c8\u3057\u3066\u3044\u3066\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u5074\u3067\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u306b\u5fdc\u3058\u3066\u63a5\u7d9a\u5148\u30b3\u30f3\u30c6\u30ca\u3092\u632f\u308a\u5206\u3051\u308b\u306e\u3068\u540c\u6642\u306bSSL\u5316\u3059\u308b\u6a5f\u69cb\u3092\u565b\u307e\u305b\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30d6\u30ed\u30b0\u306e\u65b9\u306f\u554f\u984c\u306a\u304f\u66f4\u65b0\u3067\u304d\u308b\uff08\u3069\u306e\u307f\u3061CDN\u306e\u8a3c\u660e\u66f8\u4f7f\u3063\u3066\u308b\u3051\u3069\uff09\u306e\u306b\u4f55\u6545\u3060\u308d\u3046\u2026\u2026\u3068\u8272\u3005\u8abf\u67fb\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_001.png\"><img loading=\"lazy\" decoding=\"async\" width=\"4000\" height=\"2250\" src=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_001.png\" alt=\"\" class=\"wp-image-1948\" srcset=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_001.png 4000w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_001-300x169.png 300w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_001-768x432.png 768w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_001-1024x576.png 1024w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_001-320x180.png 320w\" sizes=\"auto, (max-width: 4000px) 100vw, 4000px\" \/><\/a><figcaption>\u8d85\u7d76\u3056\u3063\u304f\u308a\u30b3\u30f3\u30c6\u30ca\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3<\/figcaption><\/figure>\n\n\n\n<p>\u8a3c\u660e\u66f8\u306fLet&#8217;s Encrypt\u3067\u751f\u6210\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u4f55\u3082\u3057\u306a\u3051\u308c\u30703\u30f6\u6708\u3067\u671f\u9650\u5207\u308c\u3092\u8d77\u3053\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u524d\u56de\uff085\u6708\uff09\u306b\u540c\u3058\u4e8b\u8c61\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306f\u4e00\u5ea6\u8a3c\u660e\u66f8\u3092\u6d88\u3057\u3066\u518d\u53d6\u5f97\u3057\u305f\u3089\u4e0a\u624b\u304f\u3044\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6628\u65e5\u307e\u305f\u540c\u3058\u3053\u3068\u304c\u8d77\u3053\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30a6\u30ab\u30a6\u30ab\u3057\u3066\u3044\u308b\u3068\u540c\u3058\u3053\u3068\u304c\u8d77\u3053\u3063\u305f\u3068\u304d\u307e\u305f\u30cf\u30de\u308a\u305d\u3046\u3060\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">TL;DR<\/h2>\n\n\n\n<p>\u8a72\u5f53\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u306eDNS\u306eAAAA\u30ec\u30b3\u30fc\u30c9\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_002.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1039\" height=\"315\" src=\"http:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_002.png\" alt=\"\" class=\"wp-image-1952\" srcset=\"https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_002.png 1039w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_002-300x91.png 300w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_002-768x233.png 768w, https:\/\/blog.minatoproject.com\/wp-content\/uploads\/2020\/08\/20200819_002-1024x310.png 1024w\" sizes=\"auto, (max-width: 1039px) 100vw, 1039px\" \/><\/a><figcaption>Cloudflare\u306eDNS\u8a2d\u5b9a<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Why?<\/h2>\n\n\n\n<p>\u30d6\u30ed\u30b0\u306e\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u306fCDN\u306b\u3088\u308aProxy\u5316\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u4e00\u65b9\u3067Git\u5074\u306fDNS\u8a2d\u5b9a\u306e\u307f\u3092\u8fd4\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u304c\u300c\u30d6\u30ed\u30b0\u3067\u8d77\u3053\u3089\u306a\u3044\u306e\u306bGit\u3067\u8d77\u3053\u308b\u300d\u306e\u305d\u3082\u305d\u3082\u306e\u7406\u7531\u306e\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u305c\u305d\u306e\u3088\u3046\u306b\u3057\u3066\u3044\u305f\u304b\u3068\u3044\u3046\u3068\u3001\u3053\u308c\u306fCloudflare\u306e\u5236\u7d04\u3067\u3001Proxy\u5316\u3067\u304d\u308b\u30dd\u30fc\u30c8\u304c\u5236\u9650\u3055\u308c\u3066\u304a\u308a\u3001Git\u306eSSH\u8a8d\u8a3c\u306b\u5fc5\u8981\u306a\u30dd\u30fc\u30c8\u3092\u958b\u3051\u3089\u308c\u306a\u304b\u3063\u305f\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3001AAAA\u30ec\u30b3\u30fc\u30c9\u3092\u767b\u9332\u3057\u3066\u304a\u304f\u3068\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u304c\u3067\u304d\u306a\u3044\u7406\u7531\u3067\u3059\u304c\u3001\u3053\u308c\u306fLet&#8217;s Encrypt\u306e <code>force_renew<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u305f\u3068\u304d\u306e\u51fa\u529b\u306b\u30e2\u30ed\u306b\u5410\u304b\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism off-numbers lang-\"><code>$ docker exec -it letsencrypt-nginx \/bin\/bash\nbash-5.0# .\/force_renew<\/code><\/pre><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>CA marked some of the authorizations as invalid, which likely means it could not access http:\/\/example.com\/.well-known\/acme-challenge\/X. Did you set correct path in -d example.com:path or &#8211;default_root? Are all your domains accessible from the internet? Please check your domains&#8217; DNS entries, your host&#8217;s network\/firewall setup and your webserver config. <span data-color=\"#fcb900\" style=\"background: linear-gradient(transparent 60%,rgba(252, 185, 0, 0.7) 0);\" class=\"vk_highlighter\">If a domain&#8217;s DNS entry has both A and AAAA fields set up, some CAs such as Let&#8217;s Encrypt will perform the challenge validation over IPv6<\/span>. If your DNS provider does not answer correctly to CAA records request, Let&#8217;s Encrypt won&#8217;t issue a certificate for your domain (see https:\/\/letsencrypt.org\/docs\/caa\/). Failing authorizations: https:\/\/acme-v02.api.letsencrypt.org\/acme\/authz-v3\/**********<\/p><\/blockquote>\n\n\n\n<p>\u2026\u2026\u3068\u3044\u3046\u3053\u3068\u3067\u30b5\u30fc\u30d0\u5074\u306e\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u304cIPv6\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u3089\u305a\uff08\u3082\u3057\u304f\u306fIPv6\u5411\u3051\u306e\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u3092\u3057\u3089\u304a\u3089\u305a\uff09\u540d\u524d\u89e3\u6c7a\u306b\u6bce\u56de\u5931\u6557\u3057\u3066\u3044\u305f\u306e\u3067\u306f\u306a\u304b\u308d\u3046\u304b\u3001\u3068\u3044\u3046\u306e\u304c\u4eca\u306e\u3068\u3053\u308d\u306e\u898b\u89e3\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u30f6\u6708\u632f\u308a\u306e\u6295\u7a3f\u306f\u3053\u306e\u30d6\u30ed\u30b0\u3092\u30db\u30b9\u30c8\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u5468\u308a\u306e\u304a\u8a71\u3067\u3059\u3002 \u4eca\u5e74\u306e2\u6708\u306b\u3053\u306e\u30c9\u30e1\u30a4\u30f3\u3092Cloudflare\u3068\u3044\u3046CDN\u306b\u767b\u9332\u3057\u3066\u304b\u3089\u3001\u3069\u3046\u3044\u3046\u308f\u3051\u304b\u5225\u306e\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3067\u7ba1\u7406\u3057\u3066\u3044\u308bGit\u306e\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3060\u3051\u8a3c\u660e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1946,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-1945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts\/1945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1945"}],"version-history":[{"count":11,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts\/1945\/revisions"}],"predecessor-version":[{"id":1959,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/posts\/1945\/revisions\/1959"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=\/wp\/v2\/media\/1946"}],"wp:attachment":[{"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.minatoproject.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}