We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35b81f5 commit 0580726Copy full SHA for 0580726
nginx.tmpl
@@ -79,7 +79,7 @@ upstream {{ $host }} {
79
{{/* Use the cert specifid on the container or fallback to the best vhost match */}}
80
{{ $cert := (coalesce $certName $vhostCert) }}
81
82
-{{ if (ne $cert "") }}
+{{ if (and (ne $cert "") (exists (printf "/etc/nginx/certs/%s.crt" $cert)) (exists (printf "/etc/nginx/certs/%s.key" $cert))) }}
83
84
server {
85
server_name {{ $host }};
0 commit comments