{"id":1799,"date":"2024-02-10T18:56:21","date_gmt":"2024-02-10T09:56:21","guid":{"rendered":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1799"},"modified":"2024-02-10T20:48:03","modified_gmt":"2024-02-10T11:48:03","slug":"nginx%e3%81%a7python%e3%82%92%e5%8b%95%e3%81%8b%e3%81%99","status":"publish","type":"post","link":"https:\/\/www.rocher.kyoto.jp\/arbr\/?p=1799","title":{"rendered":"nginx\u3067python\u3092\u52d5\u304b\u3059"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u6700\u7d42\u7684\u306b\u3084\u308a\u305f\u3044\u3053\u3068<\/h2>\n\n\n\n<p>\u5e97\u306e\u4e88\u7d04\u30e1\u30fc\u30eb\u304c\u5165\u3063\u305f\u3068\u304d\u306b\u3059\u3050\u308f\u304b\u308b\u3088\u3046\u306b\u5bb6\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u7684\u306a\u3082\u306e\u3092\u5149\u3089\u305b\u305f\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u4e88\u7d04\u3063\u307d\u3044\u30e1\u30fc\u30eb\u304c\u6765\u305f\u3089\u7279\u5b9a\u30d5\u30a9\u30eb\u30c0\u306b\u632f\u308a\u5206\u3051\u3066\u304a\u3044\u3066<\/li>\n\n\n\n<li>\u672a\u8aad\u30e1\u30fc\u30eb\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u8fd4\u3059API\u3092\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u5efa\u3066\u3066\u304a\u3044\u3066<\/li>\n\n\n\n<li>\u5bb6\u306e\u30d1\u30c8\u30e9\u30f3\u30d7\u3066\u304d\u306a\u7aef\u672b\u304b\u3089\u5b9a\u671f\u7684\u306b\u30b5\u30fc\u30d0\u3092\u30c1\u30a7\u30c3\u30af\u3057\u306b\u3044\u304f<\/li>\n<\/ol>\n\n\n\n<p>\u5bb6\u306e\u7aef\u672b\u306b\u30b5\u30fc\u30d0\u5074\u304b\u3089\u6295\u3052\u308b\u306e\u306f\u5bb6\u306e\u30d5\u30a1\u30a4\u30e4\u30a6\u30a9\u30fc\u30eb\u3042\u3051\u308b\u304b\u7aef\u672b\u5074\u304b\u3089\u3064\u306a\u3052\u3063\u3071\u306b\u3057\u3066\u5207\u308c\u305f\u3089\u518d\u63a5\u7d9a\u3068\u304b\u9762\u5012\u306a\u3053\u3068\u306b\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u7aef\u672b\u5074\u304b\u3089\u5b9a\u671f\u7684\u306b\u898b\u306b\u884c\u304f\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7684\u306b\u3082\u4ef6\u6570\u8fd4\u3059\u3060\u3051API\u306a\u3089\u3042\u3093\u307e\u9811\u5f35\u3093\u306a\u3044\u3067\u3082\u3088\u3055\u3052\u306a\u306e\u3067\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4eca\u56de\u3084\u308b\u7bc4\u56f2<\/h2>\n\n\n\n<p>\uff12\u306eAPI\u3092\u7acb\u3066\u308b\u3068\u3053\u3002nginx\u306f\u672a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u72b6\u614b\u304b\u3089\u3002python\u306fhttp.server\u3042\u305f\u308a\u3092\u4f7f\u3063\u3066nginx\u304b\u3089proxy\u3067\u98db\u3070\u3059\u4e88\u5b9a\u3002\u3042\u3068\u306f\u5b9f\u4f5c\u696d\u3057\u306a\u304c\u3089\u66f8\u3044\u3066\u3044\u304f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u958b\u59cb\u524d\u306e\u72b6\u6cc1<\/h2>\n\n\n\n<p>postfix+dovecot\u3067Maildir\u5f62\u5f0f\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u6e08\u307f\u3002\u306a\u304a\u3001\u201dUbuntu 22.04.3 LTS\u201d<\/p>\n\n\n\n<p>\u307e\u305f\u3001LetsEncript\u3067tls\u901a\u4fe1\u3092\u3055\u305b\u3066\u3044\u308b\u305f\u3081\u8a3c\u660e\u66f8\u3082\u5165\u624b\u6e08\u307f\u3002\u305f\u3060\u300180\u756a\u30dd\u30fc\u30c8\u304c\u7a7a\u3044\u3066\u3044\u308b\u524d\u63d0\u306estandalone\u30e2\u30fc\u30c9\u3067\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u3092\u3057\u3066\u3044\u308b\u305f\u3081webroot\u65b9\u5f0f\uff1f\u3060\u304b\u306b\u76f4\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306f\u305a\u3002<\/p>\n\n\n\n<p>\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u306b\u4e88\u7d04\u3063\u307d\u3044\u30e1\u30fc\u30eb\u304c\u6765\u305f\u3068\u304d\u306fsieve\u3067\u898f\u5b9a\u30d5\u30a9\u30eb\u30c0\u306b\u632f\u308a\u5206\u3051\u3066\u3044\u308b\u3002\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u3057\u305f\u306e\u3067\u3001\u984c\u540d\u306b&#8221;\u4e88\u7d04\u78ba\u5b9a\u901a\u77e5&#8221;\u304b&#8221;\u4e88\u7d04\u304c\u78ba\u5b9a&#8221;\u3068\u3042\u3063\u305f\u3089&#8221;INBOX.\u30b8\u30e0.\u4e88\u7d04&#8221;\u30d5\u30a9\u30eb\u30c0\u306b\u632f\u308a\u5206\u3051\u308b\u3068\u3044\u3046\u3082\u306e\u3002\uff08\u30b5\u30f3\u30c0\u30fc\u30d0\u30fc\u30c9\u3060\u3068&#8221;\u300c\u53d7\u4fe1\u30c8\u30ec\u30a4\u300d\u306e\u4e0b\u306e\u300c\u30b8\u30e0\u300d\u306e\u4e0b\u306e\u300c\u4e88\u7d04\u300d&#8221;\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-974feaea7aa0927a059fe4f8a42fd430\"><code>require &#91;\"fileinto\"];\n\nif header :contains \"Subject\" \"\u4e88\u7d04\u78ba\u5b9a\u901a\u77e5\" {\n    fileinto \"INBOX.\u30b8\u30e0.\u4e88\u7d04\";\n}\n\n\u4e88\u7d04\u78ba\u5b9a\u901a\u77e5if header :contains \"Subject\" \"\u4e88\u7d04\u304c\u78ba\u5b9a\" {\n    fileinto \"INBOX.\u30b8\u30e0.\u4e88\u7d04\";\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f5c\u696d\u958b\u59cb<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">nginx\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&amp;\u8a2d\u5b9a<\/h3>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-5f91c887813dd99ce7323764762e3a99\"><code>sudo apt-get install nginx<\/code><\/pre>\n\n\n\n<p>\u3057\u3066\u3001\u3068\u308a\u3042\u3048\u305a443\u30dd\u30fc\u30c8\u3092\u3042\u3051\u308b\u3002(letsencript\u4f7f\u3046\u306e\u306b80\u756a\u3082\u958b\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u306f\u305a\u306a\u306e\u3067\u7a7a\u3044\u3066\u306a\u3051\u308c\u3070\u305d\u3061\u3089\u3082)<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-5f91c887813dd99ce7323764762e3a99\"><code>sudo apt-get install nginx<\/code><\/pre>\n\n\n\n<p>\u65e2\u306b\u4f5c\u6210\u6e08\u307f\u306e\u8a3c\u660e\u66f8\u3092\u898b\u308b\u5f62\u3067https\u3092\u6709\u52b9\u306b\u3059\u308b\u3002\u3064\u3044\u3067\u306bhttp\u304b\u3089https\u3078\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3082\u304b\u3051\u3066\u304a\u304f\u3002\u3042\u3068\u3001nginx\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u4e00\u5fdc\u96a0\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-2c347abb80ea0323079dfa04c7476d68\"><code>sudo vi \/etc\/nginx\/conf.d\/ssl.conf<\/code><\/pre>\n\n\n\n<p>\u3067\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u4e0b\u3092\u8ffd\u52a0<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-17d60716b543e1efe193e62926beea7d\"><code>server {\n  listen 80;\n\n  server_tokens off;\n  server_name mail.hoge.co.jp;\n  return 301 https:\/\/$host$request_uri;\n}\n\nserver {\n  listen 443 ssl;\n\n  server_tokens off;\n  ssl_certificate \/etc\/letsencrypt\/live\/mail.hoge.co.jp\/fullchain.pem;\n  ssl_certificate_key \/etc\/letsencrypt\/live\/mail.hoge.co.jp\/privkey.pem;\n}<\/code><\/pre>\n\n\n\n<p>\u3067nginx\u518d\u8d77\u52d5<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-ce168e3ebc94eb0b96312132fd7b5506\"><code>sudo systemctl restart nginx<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30b5\u30fc\u30d0\u306b\u30b5\u30af\u30bb\u30b9\u3059\u308b\u3068https\u306b\u8ee2\u9001\u3055\u308c\u3066nginx\u306b\u3082\u3068\u304b\u3089\u5165\u3063\u3066\u3044\u308bwelcome\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">python\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">nginx\u5074\u306eproxy\u8a2d\u5b9a<\/h4>\n\n\n\n<p>ssl.conf\uff08\u3068\u6df1\u304f\u8003\u3048\u305a\u306b\u540d\u524d\u3092\u4ed8\u3051\u305f\u306e\u3067\uff09\u306b\u76f4\u63a5\u304b\u304f\u3082\u306e\u3058\u3083\u306a\u3044\u306e\u3067\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u3066\/etc\/nginx\/conf.d\/mail_api<strong>.txt<\/strong> \u306b\u8a2d\u5b9a\u3092\u66f8\u304f\u3002mail_api<strong>.<\/strong>conf\u3068\u62e1\u5f35\u5b50\u3092conf\u306b\u3059\u308b\u3068\/etc\/nginx\/nginx.conf\u304b\u3089\u306einclude\u8a2d\u5b9a\u3068\u91cd\u306a\u308a\u591a\u5206\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-2c347abb80ea0323079dfa04c7476d68\"><code>sudo vi \/etc\/nginx\/conf.d\/ssl.conf<\/code><\/pre>\n\n\n\n<p>\u3067server\uff08443\u306e\u65b9\uff09\u306e\u672b\u5c3e\u306b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u8a2d\u5b9a\u3092\u8ffd\u52a0<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-1fa8945083b41f71a9715c0bd448438e\"><code>  ssl_certificate_key \/etc\/letsencrypt\/live\/mail.hoge.co.jp\/privkey.pem;\n  include \/etc\/nginx\/conf.d\/mail_api.txt; \/\/ \u3053\u308c\u3092\u8ffd\u52a0\n}<\/code><\/pre>\n\n\n\n<p>\u305d\u3057\u3066mail_api.txt\u3092\u4f5c\u6210<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-a27052fe86ce89d2a715ac576c688ecf\"><code>sudo vi \/etc\/nginx\/conf.d\/mail_api.txt<\/code><\/pre>\n\n\n\n<p>\u306b\u3066<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-d6b458ca6cb1324a5956ffed51fa6d1b\"><code>location \/ {\n  proxy_pass http:\/\/127.0.0.1:8000;\n  proxy_set_header Host $host;\n  proxy_set_header X-Real-IP $remote_addr;\n  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n}\n<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067sudo systemctl restart nginx\u3000\u3057\u305f\u30898000\u756a\u30dd\u30fc\u30c8\u3067\u8d77\u52d5\u3057\u3066\u3044\u308b\u5974\u304c\u3042\u308c\u3070\u305d\u3061\u3089\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u3059\u3079\u3066\u98db\u3070\u3059\u306f\u305a(location \/ \u3067\u3000\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u5168\u90e8)\u30028000\u756a\u8d77\u52d5\u3057\u3066\u3044\u306a\u304f\u3066\u3082\u3068\u308a\u3042\u3048\u305anginx\u3092\u5148\u306b\u8d77\u52d5\u3067\u304d\u308b\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">python\u5074\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u53d7\u4fe1<\/h4>\n\n\n\n<p>http.server\u306b\u3066nginx\u306eproxy\u3067\u6307\u5b9a\u3057\u305f8000\u756a\u30dd\u30fc\u30c8\u3067\u5f85\u3061\u53d7\u3051\u6a5f\u80fd\u3092\u4f5c\u308b\u3002<\/p>\n\n\n\n<p>(\u672c\u6765\u30ed\u30fc\u30ab\u30eb\u3067\u5b8c\u7d50\u3059\u308b\u306e\u3067\u30d5\u30a1\u30a4\u30e4\u30a6\u30a9\u30fc\u30eb\u306e8000\u756a\u306f\u958b\u304b\u306a\u304f\u3066\u3088\u3044\u3051\u3069VSCode\u3067\u3084\u308b\u3068\u3061\u3087\u3044\u3061\u3087\u3044\u3064\u306a\u3052\u306b\u884c\u3053\u3046\u3068\u3044\u3046\u51e6\u7406\u304c\u8d70\u3063\u3066\u9762\u5012\u3060\u3063\u305f\uff09<\/p>\n\n\n\n<p>\u53d6\u308a\u6025\u304email\u30b5\u30fc\u30d0\u306e\u4efb\u610f\u306e\u5834\u6240\u306b\u4ee5\u4e0b\u306email_api.py\u3092\u4f5c\u3063\u3066python3 mail_api.py\u3067\u8d77\u52d5<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-fd4b7f86eff5f77d03e851a67eb7ea1e\"><code>from http.server import BaseHTTPRequestHandler, HTTPServer\nimport urllib.parse\n\nclass MyHandler(BaseHTTPRequestHandler):\n    def do_GET(self):\n        parsed_path = urllib.parse.urlparse(self.path)\n        query_params = urllib.parse.parse_qs(parsed_path.query)\n\n\n\n        if parsed_path.path == '\/api\/reserve_count':\n            self.send_response(200)\n            self.send_header('Content-type', 'text\/html')\n            self.end_headers()\n            response_content = b'Hello, this is the root path.'\n        else:\n            self.send_response(404)\n            self.send_header('Content-type', 'text\/html')\n            self.end_headers()\n            response_content = b'404 Not Found'\n\n        self.wfile.write(response_content)\n\nif __name__ == '__main__':\n    host = 'localhost'\n    port = 8000\n\n    server = HTTPServer((host, port), MyHandler)\n    print(f'Starting server on http:\/\/{host}:{port}')\n\n    try:\n        server.serve_forever()\n    except KeyboardInterrupt:\n        server.shutdown()\n        print('Server stopped.')<\/code><\/pre>\n\n\n\n<p>\u30ed\u30fc\u30ab\u30eb\u306ePC\u304b\u3089https:\/\/mail.hoge.co.jp\/api\/reserve_count\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068status200 \u3067 Hello, this is the root path.\u3068\u3044\u3046\u6587\u5b57\u304c\u304b\u3048\u308b\u3002<\/p>\n\n\n\n<p>\u4ed6\u3060\u3068status404 \u3067 404 not found\u3068\u3044\u3046\u6587\u5b57\u304c\u304b\u3048\u308b\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\/api\/reserve_count \u304c\u547c\u3070\u308c\u305f\u3068\u304d\u306b\u5b9f\u969b\u306b\u4ef6\u6570\u3092\u8fd4\u3059\u51e6\u7406\u3092\u4f5c\u308b<\/h4>\n\n\n\n<p>response_content = b&#8217;Hello, this is the root path.&#8217;\u306e\u3068\u3053\u308d\u3092\u4ef6\u6570\u8fd4\u3059\u95a2\u6570\u306b\u5909\u66f4<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-8554655e48a2680f4a79eff524fcbd3e\"><code>from http.server import BaseHTTPRequestHandler, HTTPServer\r\nfrom reserve_count import reserve_count \/\/ reserve_count.py\u306b\u4f5c\u3063\u305freserve_count\u95a2\u6570\u3092\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b\u3059\u308b\r\nimport urllib.parse\r\n\r\nclass MyHandler(BaseHTTPRequestHandler):\r\n    def do_GET(self):\r\n        parsed_path = urllib.parse.urlparse(self.path)\r\n        query_params = urllib.parse.parse_qs(parsed_path.query)\r\n\r\n\r        if parsed_path.path == '\/api\/reserve_count':\r\n            self.send_response(200)\r\n            self.send_header('Content-type', 'text\/html')\r\n            self.end_headers()\r\n            count = reserve_count() \/\/ \u547c\u3073\u51fa\u3057\u3066\u4ef6\u6570\u53d6\u5f97\u3057\u3066\r\n            response_content = str(count).encode('utf-8') \/\/ \u8fd4\u5374\u3000\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306a\u578b\u5909\u63db\u3067\u304d\u305d\u3046\u306a\u6c17\u304c\u3059\u308b\u3051\u3069python\u3088\u304f\u3057\u3089\u3093<\/code><\/pre>\n\n\n\n<p>\u3057\u3066vi reserve_count.py \u3057\u95a2\u6570\u4f5c\u308b\u3002\u4f8b\u5916\u51e6\u7406\u3061\u3083\u3093\u3068\u5165\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u5404\u81ea\u5b9f\u88c5\u5fc5\u8981\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-dark-gray-background-color has-text-color has-background has-link-color wp-elements-e5a1028f73a348d4af363e930bc51585\"><code>import imaplib\r\nimport imap_tools\r\nfrom email.header import decode_header\r\n\r\ndef reserve_count():\r\n    # IMAP\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\r\n    mail_server = 'mail.hoge.co.jp'\r\n    username = 'user_login_account'\r\n    password = 'user_password'\r\n\r\n    # IMAP\u30b5\u30fc\u30d0\u306b\u63a5\u7d9a\r\n    mail = imaplib.IMAP4_SSL(mail_server)\r\n    mail.login(username, password)\r\n\r\n    # # \u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3092\u9078\u629e\r\n    mailbox_name = \"INBOX.\u30b8\u30e0.\u4e88\u7d04\"\r\n     status, messages = mail.select(imap_tools.imap_utf7.encode(mailbox_name))\r\n\r\n\r\n    # # \u30e1\u30fc\u30eb\u691c\u7d22\uff08\u4f8b: \u672a\u8aad\u30e1\u30fc\u30eb\uff09\r\n    status, messages = mail.search(None, \"(UNSEEN)\")\r\n    unread_count = len(messages&#91;0].split())\r\n    print(f\"\u672a\u8aad\u30e1\u30fc\u30eb\u306e\u4ef6\u6570: {unread_count}\")\r\n\r\n    # \u63a5\u7d9a\u3092\u9589\u3058\u308b\r\n    mail.close()\r\n    mail.logout()\r\n\r\n    return unread_count\r\n<\/code><\/pre>\n\n\n\n<p>\u3042\u3093\u307e\u308a\u843d\u3061\u306a\u305d\u3046\u306a\u6c17\u306f\u3059\u308b\u306e\u3067\u5b9f\u969b\u306b\u306f\u4f8b\u5916\u51e6\u7406\u306a\u3057\u3067\u7a81\u304d\u9032\u3080\u3002\u3042\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u4ee3\u308f\u308a\u306bquery_params\u307f\u3066\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u3042\u3063\u3066\u3044\u305f\u3089\u4ef6\u6570\u78ba\u8a8d\u51e6\u7406\u547c\u3073\u51fa\u3059\u3088\u3046\u306a\u7de9\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5206\u5c90\u3092\u5165\u308c\u308b\u3064\u3082\u308a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u7d42\u7684\u306b\u3084\u308a\u305f\u3044\u3053\u3068 \u5e97\u306e\u4e88\u7d04\u30e1\u30fc\u30eb\u304c\u5165\u3063\u305f\u3068\u304d\u306b\u3059\u3050\u308f\u304b\u308b\u3088\u3046\u306b\u5bb6\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u7684\u306a\u3082\u306e\u3092\u5149\u3089\u305b\u305f\u3044\u3002 \u5bb6\u306e\u7aef\u672b\u306b\u30b5\u30fc\u30d0\u5074\u304b\u3089\u6295\u3052\u308b\u306e\u306f\u5bb6\u306e\u30d5\u30a1\u30a4\u30e4\u30a6\u30a9\u30fc\u30eb\u3042\u3051\u308b\u304b\u7aef\u672b\u5074\u304b\u3089\u3064\u306a\u3052\u3063\u3071\u306b\u3057\u3066\u5207\u308c\u305f\u3089\u518d\u63a5\u7d9a\u3068\u304b\u9762\u5012\u306a\u3053\u3068\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[],"class_list":["post-1799","post","type-post","status-publish","format-standard","hentry","category-58"],"_links":{"self":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1799"}],"version-history":[{"count":6,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1799\/revisions"}],"predecessor-version":[{"id":1806,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=\/wp\/v2\/posts\/1799\/revisions\/1806"}],"wp:attachment":[{"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocher.kyoto.jp\/arbr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}