|
@@ -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 }}
|