mirror of
				https://github.com/digitalocean/nginxconfig.io.git
				synced 2025-11-04 18:28:17 +08:00 
			
		
		
		
	@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user