From cd31d75443119be6580e91d5a9a3ab7742f875ab Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 18 Mar 2017 18:38:46 +0100 Subject: updated setup_fastd.yml added features: - fastd-services-api - install_nginx - install_monitoring --- roles/install_monitoring/files/vnstat | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 roles/install_monitoring/files/vnstat (limited to 'roles/install_monitoring/files/vnstat') diff --git a/roles/install_monitoring/files/vnstat b/roles/install_monitoring/files/vnstat new file mode 100644 index 0000000..cbd2f7c --- /dev/null +++ b/roles/install_monitoring/files/vnstat @@ -0,0 +1,37 @@ +server { + listen 80 default_server; + listen [::]:80 default_server ipv6only=on; + server_name localhost; + + charset UTF-8; + + index index.html index.htm; + root /srv/http/vnstat; + + location / { + try_files $uri $uri/ =404; + autoindex on; + } + + # redirect server error pages to the static page /50x.html + # + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + + location /nginx_status { + stub_status on; + access_log off; + allow 127.0.0.1; + allow ::1; + deny all; + } + + + location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf|svg)$ { + expires 30d; + # Optional: Don't log access to assets + access_log off; + } +} -- cgit v1.2.3-70-g09d2