Explorar el Código

Read the right value of 'default' in the template.

pull/4/head
Chris Smith hace 6 años
padre
commit
0a54f9fc6e
Firmado por: Chris Smith <chris@chameth.com> GPG Key ID: 3A2D4BBDC4A3C9A9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      nginx.tpl

+ 2
- 2
nginx.tpl Ver fichero

1
 {% for service in services %}
1
 {% for service in services %}
2
 server {
2
 server {
3
     server_name {{ ' '.join(service.vhosts) }};
3
     server_name {{ ' '.join(service.vhosts) }};
4
-    listen [::]:443{{ ' default_server' if default }} ssl http2;
5
-    listen 443{{ ' default_server' if default }} ssl http2;
4
+    listen [::]:443{{ ' default_server' if service.default }} ssl http2;
5
+    listen 443{{ ' default_server' if service.default }} ssl http2;
6
 
6
 
7
     ssl_certificate {{ service.certificate }};
7
     ssl_certificate {{ service.certificate }};
8
     ssl_trusted_certificate {{ service.trusted_certificate }};
8
     ssl_trusted_certificate {{ service.trusted_certificate }};

Loading…
Cancelar
Guardar