fix subdomain server certificate path

fixes #10
pull/12/head
Szekeres Bálint 7 years ago
parent 9e0eb0095c
commit 6ff1b0eb71

@ -130,7 +130,7 @@
$scope.sslCertificate = function() {
if ($scope.isCertLetsEncrypt()) {
return '/etc/letsencrypt/live/' + $scope.domain() + '/fullchain.pem'
return '/etc/letsencrypt/live/' + $scope.domain() + '/fullchain.pem';
}
if ($scope.data.ssl_certificate) {
@ -142,7 +142,7 @@
$scope.sslCertificateKey = function() {
if ($scope.isCertLetsEncrypt()) {
return '/etc/letsencrypt/live/' + $scope.domain() + '/privkey.pem'
return '/etc/letsencrypt/live/' + $scope.domain() + '/privkey.pem';
}
if ($scope.data.ssl_certificate_key) {

@ -142,8 +142,8 @@ server {
# SSL
include _ssl.conf;
ssl_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ domain() }}/privkey.pem;<!--
ssl_certificate {{ sslCertificate() }};
ssl_certificate_key {{ sslCertificateKey() }};<!--
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt()">
ssl_trusted_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem;</span></span>

Loading…
Cancel
Save