Add HSTS headers to all web services
This commit is contained in:
parent
5ae55c6c5b
commit
8a8216d78e
6 changed files with 11 additions and 7 deletions
|
@ -58,11 +58,6 @@ versions_to_keep = 20
|
|||
enabled = true
|
||||
path = /var/lib/grafana/dashboards
|
||||
|
||||
# Alerting
|
||||
[alerting]
|
||||
enabled = true
|
||||
execute_alerts = True
|
||||
|
||||
# SMTP and email config
|
||||
|
||||
# Logging
|
||||
|
|
|
@ -10,6 +10,9 @@ server {
|
|||
ssl_certificate_key "/var/lib/dehydrated/certs/{{ monitoring_domain }}/privkey.pem";
|
||||
{% endif %}
|
||||
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-Robots-Tag noindex;
|
||||
|
||||
location / {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue