瀏覽代碼

HSTS

master
父節點
當前提交
17dcbd1c1e
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. +1
    -0
      tasks/apache2.yml
  2. +1
    -0
      templates/apache-vhost.conf.j2

+ 1
- 0
tasks/apache2.yml 查看文件

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

- name: apache2 nextcloud vhost


+ 1
- 0
templates/apache-vhost.conf.j2 查看文件

@@ -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…
取消
儲存