瀏覽代碼

Fix whitespace and cert path in haproxy template

master
Chris Smith 5 年之前
父節點
當前提交
cad8dc3675
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3
    4
      templates/haproxy.cfg.tpl

+ 3
- 4
templates/haproxy.cfg.tpl 查看文件

@@ -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…
取消
儲存