Browse Source

Fix whitespace and cert path in haproxy template

master
Chris Smith 5 years ago
parent
commit
cad8dc3675
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      templates/haproxy.cfg.tpl

+ 3
- 4
templates/haproxy.cfg.tpl View File

@@ -18,14 +18,13 @@ defaults
18 18
 
19 19
 frontend main
20 20
     mode    http
21
-    bind    :443 ssl strict-sni alpn h2,http/1.1 crt /certs/certs/chameth.com/combined.pem
21
+    bind    :443 ssl strict-sni alpn h2,http/1.1 crt /certs/
22 22
     bind    :80
23 23
     redirect scheme https code 301 if !{ ssl_fc }
24 24
     http-response set-header Strict-Transport-Security max-age=15768000
25 25
 {{- range .Hostnames }}
26
-    use_backend {{ .Name | replace "." "_" }} if {hdr(host) -i {{ .Name }}
27
-        {{- range $san, $_ := .Alternatives }} || hdr(host) -i {{ $san }} {{- end -}}
28
-    }
26
+    use_backend {{ .Name | replace "." "_" }} if { hdr(host) -i {{ .Name }}
27
+        {{- range $san, $_ := .Alternatives }} || hdr(host) -i {{ $san }} {{- end }} }
29 28
 {{- end -}}
30 29
 
31 30
 {{ range .Hostnames }}

Loading…
Cancel
Save