add netdata restart and hsts for subdomains

This commit is contained in:
VirtuBox 2018-04-25 22:01:46 +02:00
parent 92c3af8f92
commit 2aed70a729
2 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,7 @@ echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs
# disable email notifications
wget -O /etc/netdata/health_alarm_notify.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/netdata/health_alarm_notify.conf
service netdata restart
```

View File

@ -0,0 +1,2 @@
# Warning : this line enable HSTS for your domain and all subdomains (ngx_http_headers_module is required) (15768000 seconds = 6 months)
add_header Strict-Transport-Security "max-age=31536000; preload";