Browse Source

HSTS

master
parent
commit
17dcbd1c1e
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      tasks/apache2.yml
  2. +1
    -0
      templates/apache-vhost.conf.j2

+ 1
- 0
tasks/apache2.yml View File

@@ -8,6 +8,7 @@
- ssl
- rewrite
- env
- headers
notify: restart apache2

- name: apache2 nextcloud vhost


+ 1
- 0
templates/apache-vhost.conf.j2 View File

@@ -13,6 +13,7 @@
{% if not certificate_provider == "selfsigned" %}
SSLCertificateChainFile "/etc/ssl/certs/nextcloud.chain.pem"
{% endif %}
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"

DocumentRoot {{nextcloud_directory}}



Loading…
Cancel
Save