{"id":397,"date":"2018-12-23T13:39:20","date_gmt":"2018-12-23T10:39:20","guid":{"rendered":"https:\/\/artem.services\/?p=397"},"modified":"2018-12-23T13:39:20","modified_gmt":"2018-12-23T10:39:20","slug":"grafana-nginx-proxy-with-basic-auth","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=397","title":{"rendered":"Grafana &#8212; Nginx proxy with basic auth"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-219 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo.png\" alt=\"\" width=\"937\" height=\"145\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo.png 937w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo-300x46.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Config-Examples-Logo-768x119.png 768w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <strong>Grafana<\/strong> <strong>Nginx<\/strong>&#39;\u043e\u043c \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439<\/p>\n<h2>grafana.conf:<\/h2>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nserver\r\n{\r\n    listen 80;\r\n    server_name grafana.example.org;\r\n \r\n    location \/ {\r\n      \tproxy_pass       http:\/\/127.0.0.1:3000;\r\n      \tproxy_set_header X-WEBAUTH-USER $remote_user;\r\n      \tproxy_set_header Authorization &quot;&quot;;\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Grafana Nginx&#39;\u043e\u043c \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 grafana.conf:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[98,79,10,23],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/397"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=397"}],"version-history":[{"count":1,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/397\/revisions\/398"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}