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:
committed by
Nicolas Duchon
parent
18d0671312
commit
16066cab61
@ -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 }}
|
||||
|
Reference in New Issue
Block a user