{"id":935,"date":"2020-02-22T13:39:35","date_gmt":"2020-02-22T11:39:35","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=935"},"modified":"2020-02-22T13:49:39","modified_gmt":"2020-02-22T11:49:39","slug":"grafana-behind-nginx-reverse-proxy","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=935","title":{"rendered":"Grafana behind Nginx Reverse Proxy&#8230;"},"content":{"rendered":"\n<p>The subdomain server.rocworks.at is redirected by my provider to my IP at home where Nginx (with Letsencrypt Certificate) is running and it forwards \/grafana to my Grafana Docker Instance. Access to Grafana is possible via https:\/\/server.rocworks.at\/grafana. <\/p>\n\n\n\n<p>Nginx Configuration (sites-enabled\/default)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n        listen 80 default_server;\n        listen [::]:80 default_server;\n\n        root \/var\/www\/html;\n\n        index index.html index.htm index.nginx-debian.html;\n\n        server_name server.rocworks.at;\n\n        location \/ {\n                try_files $uri $uri\/ =404;\n        }\n\n        location \/grafana\/ {\n            proxy_pass http:\/\/docker1:3000\/;\n        }\n}<\/code><\/pre>\n\n\n\n<p>Grafana Configuration (\/etc\/grafana\/grafana.ini)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[server]\n# Protocol (http or https)\nprotocol = http\n\n# The http port to use\nhttp_port = 3000\n\n# The public facing domain name used to access grafana from a browser\ndomain = server.rocworks.at\n\n# Root Url (NOTE: there is not Port in the URL)\nroot_url = %(protocol)s:\/\/%(domain)s\/grafana\n\nenforce_domain = false<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The subdomain server.rocworks.at is redirected by my provider to my IP at home where Nginx (with Letsencrypt Certificate) is running and it forwards \/grafana to my Grafana Docker Instance. Access to Grafana is possible via https:\/\/server.rocworks.at\/grafana. Nginx Configuration (sites-enabled\/default) Grafana Configuration (\/etc\/grafana\/grafana.ini)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-935","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=935"}],"version-history":[{"count":2,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/935\/revisions"}],"predecessor-version":[{"id":937,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/935\/revisions\/937"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}