fix: non working https with virtual path

This commit is contained in:
Nicolas Duchon 2021-08-11 18:04:53 +02:00
parent ea8a474cc0
commit 0d47f83a53
No known key found for this signature in database
GPG key ID: EA3151C66A4D79E7

View file

@ -382,7 +382,7 @@ server {
{{ else }} {{ else }}
{{ range $path, $container := $paths }} {{ range $path, $container := $paths }}
{{ $sum := sha1 $path }} {{ $sum := sha1 $path }}
{{ $upstream := printf "%s-%s" $host $sum }} {{ $upstream := printf "%s-%s" $upstream_name $sum }}
{{ template "location" (dict "Path" $path "Proto" $proto "Upstream" $upstream "Host" $host "Vhostroot" $vhost_root) }} {{ template "location" (dict "Path" $path "Proto" $proto "Upstream" $upstream "Host" $host "Vhostroot" $vhost_root) }}
{{ end }} {{ end }}
{{ end }} {{ end }}