summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-01-02 20:24:55 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2019-01-02 20:24:55 +0100
commit57990d1649023f7d6965ce51867ddff461b6edc2 (patch)
tree7b6ce224fbcd8e57ef927e948f6824650738d119
parent23922b62b8a0a5ec658ab6c5ad7544614558b4be (diff)
downloadpillar-57990d1649023f7d6965ce51867ddff461b6edc2.tar.xz
Add grafana without ssl
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nginx/grafana_kyriasis_com.sls19
1 files changed, 19 insertions, 0 deletions
diff --git a/nginx/grafana_kyriasis_com.sls b/nginx/grafana_kyriasis_com.sls
new file mode 100644
index 0000000..ca1f13d
--- /dev/null
+++ b/nginx/grafana_kyriasis_com.sls
@@ -0,0 +1,19 @@
+nginx:
+ ng:
+ servers:
+ managed:
+ grafana.kyriasis.com:
+ enabled: True
+ config:
+ - server:
+ - server_name: grafana.kyriasis.com
+ - listen: 80
+ - listen: '[::]:80'
+
+ - location /.well-known/acme-challenge:
+ - root: /srv/http
+
+ - location /:
+ - return: '301 https://$server_name$request_uri'
+
+# vim: ft=yaml et: