aboutsummaryrefslogtreecommitdiffstats
path: root/roles/grafana/templates/grafana_reverse.conf.j2
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-21 22:57:13 +0100
committerbinary <me@rgoncalves.se>2020-11-21 22:57:13 +0100
commit50492a1b34b6b766c1369425a27678968bb4d28e (patch)
treef5db6ca67d6e193259d786c5e3b820fab11ec235 /roles/grafana/templates/grafana_reverse.conf.j2
parenta2705cf6057208708cefcfcb2ee0d285b9d3ec47 (diff)
downloadinfrastructure-50492a1b34b6b766c1369425a27678968bb4d28e.tar.gz
First try with grafana automation.
Diffstat (limited to 'roles/grafana/templates/grafana_reverse.conf.j2')
-rw-r--r--roles/grafana/templates/grafana_reverse.conf.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/grafana/templates/grafana_reverse.conf.j2 b/roles/grafana/templates/grafana_reverse.conf.j2
new file mode 100644
index 0000000..c0f926c
--- /dev/null
+++ b/roles/grafana/templates/grafana_reverse.conf.j2
@@ -0,0 +1,9 @@
+server {
+ listen {{ grafana_port_out }};
+ root /usr/share/nginx/html;
+ index index.html index.htm;
+
+ location / {
+ proxy_pass http://127.0.0.1:{{ grafana_port }}/;
+ }
+}
remember that computers suck.