Skip to content

Commit

Permalink
fix bug with ssl nginx template
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Hazlett <[email protected]>
  • Loading branch information
ehazlett committed Jul 28, 2017
1 parent 8602a2b commit 5f817fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ext/lb/nginx/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ http {
stub_status on;
access_log off;
}
{{ end }}
}
{{ if $host.SSL }}
server {
listen {{ $host.SSLPort }};
Expand Down Expand Up @@ -155,6 +155,8 @@ http {
{{ end }}
{{ end }} {{/* end host range */}}
}
include {{ .Config.ConfigBasePath }}/conf.d/*.conf;
}
`
3 changes: 2 additions & 1 deletion ext/lb/nginx/template_nginxplus.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ http {
stub_status on;
access_log off;
}
{{ end }}
}
{{ if $host.SSL }}
Expand Down Expand Up @@ -168,6 +167,8 @@ http {
{{ end }}
{{ end }} {{/* end host range */}}
}
include {{ .Config.ConfigBasePath }}/conf.d/*.conf;
}
`

0 comments on commit 5f817fe

Please sign in to comment.