{"id":1553,"date":"2021-07-12T14:53:50","date_gmt":"2021-07-12T05:53:50","guid":{"rendered":"https:\/\/www.kwonline.org\/memo2\/?p=1553"},"modified":"2021-07-12T14:53:57","modified_gmt":"2021-07-12T05:53:57","slug":"airflow-nginx-reverse-proxy-config","status":"publish","type":"post","link":"https:\/\/www.kwonline.org\/memo2\/2021\/07\/12\/airflow-nginx-reverse-proxy-config\/","title":{"rendered":"Airflow \u3092 Nginx \u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3067 SSL \u5316"},"content":{"rendered":"<p>&nbsp;<br \/>\nAirflow \u3092 Nginx \u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u5f8c\u308d\u306b\u304a\u3044\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<p>Airflow \u5358\u4f53\u3067\u3082\u8a3c\u660e\u66f8\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066SSL\u5316\u51fa\u6765\u308b\u3089\u3057\u3044\u304c\u3084\u3063\u3071 Nginx \u3088\u306d(\u30c6\u30ad\u30c8\u30fc<\/p>\n<p>Nginx + LetsEncrypt \u306b\u3064\u3044\u3066\u306f\u524d\u306b\u3082\u66f8\u3044\u305f\u2193<\/p>\n<p><a href=\"https:\/\/www.kwonline.org\/memo2\/2020\/06\/23\/ubuntu-20-04-nginx-reverse-proxy-and-ssl\/\" rel=\"noopener\" target=\"_blank\">Ubuntu: Nginx\u3067\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068SSL<\/a><\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067 Airflow specific \u306a\u4e8b\u3060\u3051\u66f8\u304f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Nginx \u8a2d\u5b9a<\/h3>\n<p>\/etc\/nginx\/sites-available\/default \u306e443\u756a\u30dd\u30fc\u30c8\u306e\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u306b\u4e0b\u8a18\u3092\u8ffd\u8a18<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nlocation \/airflow\/ {\r\n    proxy_pass http:\/\/localhost:8080;\r\n    proxy_set_header Host $host;\r\n    proxy_redirect off;\r\n    proxy_http_version 1.1;\r\n    proxy_set_header Upgrade $http_upgrade;\r\n    proxy_set_header Connection &quot;upgrade&quot;;\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>Airflow \u8a2d\u5b9a<\/h3>\n<p>airflow.cfg \u306e\u8a2d\u5b9a\u3092\u5909\u66f4<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nbase_url = https:\/\/hoge.example.com\/airflow\r\n\r\nweb_server_port = 8080\r\n\r\nenable_proxy_fix = True\r\n<\/pre>\n<p>\u3042\u3068\u306f Nginx \u3068 Airflow \u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u3001Nginx \u306e\u30ea\u30d0\u30d7\u30ed\u7d4c\u7531\u3067 Airflow \u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u306a\u308b\u306e\u3067\u5b89\u5fc3\u611f\u304c\u5897\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Airflow \u3092 Nginx \u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u5f8c\u308d\u306b\u304a\u3044\u305f\u306e\u3067\u30e1\u30e2\u3002 Airflow \u5358\u4f53\u3067\u3082\u8a3c\u660e\u66f8\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066SSL\u5316\u51fa\u6765\u308b\u3089\u3057\u3044\u304c\u3084\u3063\u3071 Nginx \u3088\u306d(\u30c6\u30ad\u30c8\u30fc Nginx + LetsEn [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,8],"tags":[],"class_list":["post-1553","post","type-post","status-publish","format-standard","hentry","category-data-engineering","category-linux"],"_links":{"self":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/comments?post=1553"}],"version-history":[{"count":2,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1553\/revisions"}],"predecessor-version":[{"id":1556,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/posts\/1553\/revisions\/1556"}],"wp:attachment":[{"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/media?parent=1553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/categories?post=1553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwonline.org\/memo2\/wp-json\/wp\/v2\/tags?post=1553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}