{"id":380,"date":"2024-04-23T00:32:16","date_gmt":"2024-04-22T15:32:16","guid":{"rendered":"https:\/\/txn.myds.me\/blog\/?p=380"},"modified":"2024-04-23T00:32:16","modified_gmt":"2024-04-22T15:32:16","slug":"podman-docker-%e5%86%85%e3%81%ae-caddy-admin-api-%e3%81%ab%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.txn.red\/?p=380","title":{"rendered":"podman \/ docker \u5185\u306e Caddy admin API \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3072\u304d\u3064\u3065\u304d podman \u95a2\u9023\u306e\u30cd\u30bf\u3067\u3059\u3002 podman \u306b CakePHP5 \u74b0\u5883\u3092\u4f5c\u3063\u3066\u3044\u308b\u9014\u4e2d\u3067\u3059\u304c\u3001 \u305b\u3063\u304b\u304f\u306a\u306e\u3067\u4eca\u56de\u306fnginx \u3067\u306f\u306a\u304f Caddy Server \u3092\u4f7f\u304a\u3046\u3068\u601d\u3044\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Caddy \u306f \/config\/ \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u8a2d\u5b9a\u3092\u53d6\u5f97\/\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u6027\u8cea\u4e0a localhost (127.0.0.1) \u304b\u3089\u3057\u304b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3067\u4eca\u56de\u306f\u3001docker \u3067\u3082 podman \u3067\u3082\u30b3\u30f3\u30c6\u30ca\u5185\u3067 Caddy \u3092\u52d5\u304b\u3059\u3068\u30db\u30b9\u30c8\u5074\u306e\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u3068\u3063\u3066\u306f\u5916\u90e8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306b\u306a\u308b\u306e\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002\uff08\u30b3\u30f3\u30c6\u30ca\u4f7f\u3046\u3068\u3088\u304f\u51fa\u4f1a\u3046\u3042\u306e\u73fe\u8c61\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/caddyserver.com\/docs\/getting-started\">\u3053\u3053<\/a>\u306b\u3055\u3089\u3063\u3068 localhost \u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306b\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u3068\u3042\u308a\u307e\u3059\u304c\u3001\u3069\u3046\u3084\u3063\u305f\u3089\u8a2d\u5b9a\u3092\u5909\u66f4\u3067\u304d\u308b\u304b\u306f\u6b63\u76f4\u8a00\u3063\u3066\u898b\u3064\u3051\u306b\u304f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u308f\u304b\u3063\u3066\u3057\u307e\u3048\u3070 Caddyfile \u306eGlobal block \u306b\u8a2d\u5b9a\u3092\u5165\u308c\u308c\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u3001\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u8a18\u4e8b\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"Caddyfile\" data-line=\"4\"><code># global block\n# \u3088\u3046\u306f\u4e00\u756a\u4e0a\u306b {} \u306e\u30d6\u30ed\u30c3\u30af\u3092\u5165\u308c\u308b\u3068 global \u30d6\u30ed\u30c3\u30af\u306b\u306a\u308b\u3088\u3046\u3060\u3002\n\uff5b\n  admin 0.0.0.0:2019\n\uff5d\n:80 {\n  # 80 \u3067\u5f85\u3061\u53d7\u3051\u308b\u5185\u5bb9\u304c\u4ee5\u4e0b\u306b\u3064\u3065\u304f\u3002\n  ....\n}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3067 curl localhost:2019\/config\/ \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%25e5%258f%2582%25e8%2580%2583\">\u53c2\u8003<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/caddy.community\/t\/how-to-execute-the-caddy-api-in-docker\/7249\/2\">How to execute the Caddy API in Docker? &#8211; Help &#8211; Caddy Community<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/caddyserver.com\/docs\/caddyfile\/options\">Global options (Caddyfile) \u2014 Caddy Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3072\u304d\u3064\u3065\u304d podman \u95a2\u9023\u306e\u30cd\u30bf\u3067\u3059\u3002 podman \u306b CakePHP5 \u74b0\u5883\u3092\u4f5c\u3063\u3066\u3044\u308b\u9014\u4e2d\u3067\u3059\u304c\u3001 \u305b\u3063\u304b\u304f\u306a\u306e\u3067\u4eca\u56de\u306fnginx \u3067\u306f\u306a\u304f Caddy Server \u3092\u4f7f\u304a\u3046\u3068\u601d\u3044\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u307e\u3059\u3002 Cad [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":10,"footnotes":""},"categories":[5],"tags":[17,16],"class_list":["post-380","post","type-post","status-publish","format-standard","hentry","category-it","tag-caddy","tag-podman"],"_links":{"self":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=380"}],"version-history":[{"count":0,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/380\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}