Procházet zdrojové kódy

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

pull/4/head
Chris Smith před 6 roky
rodič
revize
0a54f9fc6e
Podepsáno: Chris Smith <chris@chameth.com> ID GPG klíče: 3A2D4BBDC4A3C9A9
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      nginx.tpl

+ 2
- 2
nginx.tpl Zobrazit soubor

@@ -1,8 +1,8 @@
1 1
 {% for service in services %}
2 2
 server {
3 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 7
     ssl_certificate {{ service.certificate }};
8 8
     ssl_trusted_certificate {{ service.trusted_certificate }};

Načítá se…
Zrušit
Uložit