parent
9e0eb0095c
commit
6ff1b0eb71
|
@ -130,7 +130,7 @@
|
||||||
|
|
||||||
$scope.sslCertificate = function() {
|
$scope.sslCertificate = function() {
|
||||||
if ($scope.isCertLetsEncrypt()) {
|
if ($scope.isCertLetsEncrypt()) {
|
||||||
return '/etc/letsencrypt/live/' + $scope.domain() + '/fullchain.pem'
|
return '/etc/letsencrypt/live/' + $scope.domain() + '/fullchain.pem';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($scope.data.ssl_certificate) {
|
if ($scope.data.ssl_certificate) {
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
|
|
||||||
$scope.sslCertificateKey = function() {
|
$scope.sslCertificateKey = function() {
|
||||||
if ($scope.isCertLetsEncrypt()) {
|
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) {
|
if ($scope.data.ssl_certificate_key) {
|
||||||
|
|
|
@ -142,8 +142,8 @@ server {
|
||||||
|
|
||||||
# SSL
|
# SSL
|
||||||
include _ssl.conf;
|
include _ssl.conf;
|
||||||
ssl_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem;
|
ssl_certificate {{ sslCertificate() }};
|
||||||
ssl_certificate_key /etc/letsencrypt/live/{{ domain() }}/privkey.pem;<!--
|
ssl_certificate_key {{ sslCertificateKey() }};<!--
|
||||||
|
|
||||||
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt()">
|
✔ Let's Encrypt --><span ng-if="isCertLetsEncrypt()">
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem;</span></span>
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem;</span></span>
|
||||||
|
|
Loading…
Reference in New Issue