diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-18 18:38:46 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-18 18:38:46 +0100 |
commit | cd31d75443119be6580e91d5a9a3ab7742f875ab (patch) | |
tree | 0d12fe52bbb796969336dae613e66ca5f433aba4 /roles/install_monitoring/files/vnstat | |
parent | 710a210ae6f165c2e3ce165d30d27f189311656b (diff) |
updated setup_fastd.yml
added features:
- fastd-services-api
- install_nginx
- install_monitoring
Diffstat (limited to 'roles/install_monitoring/files/vnstat')
-rw-r--r-- | roles/install_monitoring/files/vnstat | 37 |
1 files changed, 37 insertions, 0 deletions
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; + } +} |