Skip to content

Commit

Permalink
fix: hide https listener for servers without ssl cert
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Shi authored and Huanle Han committed Jan 19, 2021
1 parent 5cecdd3 commit d63f12e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,9 @@ stream {
{{ $server := .Second }}

{{ buildHTTPListener $all $server.Hostname }}
{{ if $server.SSLCert }}
{{ buildHTTPSListener $all $server.Hostname }}
{{ end }}

set $proxy_upstream_name "-";

Expand Down

0 comments on commit d63f12e

Please sign in to comment.