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
|
@ -31,7 +31,7 @@ all:
|
||||||
mqtt.bitlair.nl:
|
mqtt.bitlair.nl:
|
||||||
monitoring:
|
monitoring:
|
||||||
hosts:
|
hosts:
|
||||||
monitoring.bitlair.nl:
|
dashboard.bitlair.nl:
|
||||||
music:
|
music:
|
||||||
hosts:
|
hosts:
|
||||||
music.bitlair.nl:
|
music.bitlair.nl:
|
||||||
|
|
|
@ -12,6 +12,10 @@ server {
|
||||||
ssl_certificate_key "/var/lib/dehydrated/certs/{{ etherpad_domain }}/privkey.pem";
|
ssl_certificate_key "/var/lib/dehydrated/certs/{{ etherpad_domain }}/privkey.pem";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
||||||
|
add_header X-Frame-Options DENY;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:9001/;
|
proxy_pass http://127.0.0.1:9001/;
|
||||||
include proxy_params;
|
include proxy_params;
|
||||||
|
|
|
@ -13,6 +13,9 @@ server {
|
||||||
ssl_certificate_key "/var/lib/dehydrated/certs/{{ git_server_domain }}/privkey.pem";
|
ssl_certificate_key "/var/lib/dehydrated/certs/{{ git_server_domain }}/privkey.pem";
|
||||||
{% endif %}
|
{% 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;
|
add_header X-Robots-Tag noindex;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
|
@ -58,11 +58,6 @@ versions_to_keep = 20
|
||||||
enabled = true
|
enabled = true
|
||||||
path = /var/lib/grafana/dashboards
|
path = /var/lib/grafana/dashboards
|
||||||
|
|
||||||
# Alerting
|
|
||||||
[alerting]
|
|
||||||
enabled = true
|
|
||||||
execute_alerts = True
|
|
||||||
|
|
||||||
# SMTP and email config
|
# SMTP and email config
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
|
|
|
@ -10,6 +10,9 @@ server {
|
||||||
ssl_certificate_key "/var/lib/dehydrated/certs/{{ monitoring_domain }}/privkey.pem";
|
ssl_certificate_key "/var/lib/dehydrated/certs/{{ monitoring_domain }}/privkey.pem";
|
||||||
{% endif %}
|
{% 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;
|
add_header X-Robots-Tag noindex;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
|
@ -16,7 +16,6 @@ server {
|
||||||
ssl_certificate_key "/var/lib/dehydrated/certs/{{ www_domain }}/privkey.pem";
|
ssl_certificate_key "/var/lib/dehydrated/certs/{{ www_domain }}/privkey.pem";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# SSL settings from https://cipherli.st/ - AK47 15 jan 2017
|
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
||||||
add_header X-Frame-Options DENY;
|
add_header X-Frame-Options DENY;
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
|
|
Loading…
Add table
Reference in a new issue