From 785cae7ccf8c69366438a446ff121ecbb7ad5465 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 8 Dec 2020 20:06:25 +0100 Subject: add grahpite web and grafana roles --- .../graphite/web/templates/nginx-vhost.conf.j2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 roles/monitoring/graphite/web/templates/nginx-vhost.conf.j2 (limited to 'roles/monitoring/graphite/web/templates/nginx-vhost.conf.j2') diff --git a/roles/monitoring/graphite/web/templates/nginx-vhost.conf.j2 b/roles/monitoring/graphite/web/templates/nginx-vhost.conf.j2 new file mode 100644 index 00000000..48b6ef73 --- /dev/null +++ b/roles/monitoring/graphite/web/templates/nginx-vhost.conf.j2 @@ -0,0 +1,20 @@ +server { + listen {{ graphite_web_nginx_listen }}; + + server_name _; + + location / { + include uwsgi_params; + uwsgi_pass 127.0.0.1:{{ graphite_web_uwsgi_port }}; + } + rewrite ^/admin(.*)admin/([^/]+)/([^/]+)$ /media/$2/$3 redirect; + location /media { + alias /usr/share/python-django-common/django/contrib/admin/static/admin/; + } + location /static/ { + alias /usr/share/graphite-web/static/; + } + + access_log /var/log/nginx/access-graphite.log; + error_log /var/log/nginx/error-graphite.log; +} -- cgit v1.2.3