1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-06-30 22:05:46 +00:00

fix: Don't create cert error https server if https is not enabled

This commit is contained in:
Richard Hansen
2023-02-02 17:17:00 -05:00
committed by Nicolas Duchon
parent 18d0671312
commit 16066cab61
12 changed files with 483 additions and 3 deletions

View File

@ -559,7 +559,7 @@ server {
{{- end }}
}
{{- if and (or (eq $https_method "nohttps") (not $cert_ok)) $globals.default_cert_ok }}
{{- if and (ne $https_method "nohttps") (not $cert_ok) $globals.default_cert_ok }}
server {
server_name {{ $host }};
{{- if $server_tokens }}