瀏覽代碼

correctly handle selfsigned certificate

master
父節點
當前提交
a7eca6dd56
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      templates/apache-vhost.conf.j2

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

@@ -9,8 +9,10 @@

SSLEngine on
SSLCertificateFile "/etc/ssl/certs/nextcloud.cert.pem"
SSLCertificateChainFile "/etc/ssl/certs/nextcloud.chain.pem"
SSLCertificateKeyFile "/etc/ssl/private/nextcloud.key.pem"
{% if not certificate_provider == "selfsigned" %}
SSLCertificateChainFile "/etc/ssl/certs/nextcloud.chain.pem"
{% endif %}
{% if certificate_provider == "letsencrypt" %}
Include /etc/letsencrypt/options-ssl-apache.conf
{% endif %}


Loading…
取消
儲存