Explorar o código

Merge pull request #91 from pirelenito/master

fixes SSL support while mixing HTTPS and non-HTTPS hosts
Jason Wilder %!s(int64=10) %!d(string=hai) anos
pai
achega
c3534b7195
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      nginx.tmpl

+ 2 - 2
nginx.tmpl

@@ -129,16 +129,16 @@ server {
 	}
 }
 
+{{ if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}
 server {
 	server_name {{ $host }};
 	listen 443 ssl;
 	return 503;
 
-	{{ if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}
 	ssl_certificate /etc/nginx/certs/default.crt;
 	ssl_certificate_key /etc/nginx/certs/default.key;
-	{{ end }}
 }
+{{ end }}
 
 {{ end }}
 {{ end }}