8000 Fix template file spacing for `ssl_protocols` directive by j1m-ryan · Pull Request #5020 · nginx/kubernetes-ingress · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions internal/configs/version1/nginx-plus.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,18 @@ http {
default upgrade;
'' $default_connection_header;
}
{{- if .SSLProtocols}}ssl_protocols {{.SSLProtocols}};{{end}}
{{- if .SSLCiphers}}ssl_ciphers "{{.SSLCiphers}}";{{end}}
{{- if .SSLPreferServerCiphers}}ssl_prefer_server_ciphers on;{{end}}
{{- if .SSLDHParam}}ssl_dhparam {{.SSLDHParam}};{{end}}
{{- if .SSLProtocols}}
ssl_protocols {{.SSLProtocols}};
{{- end}}
{{- if .SSLCiphers}}
ssl_ciphers "{{.SSLCiphers}}";
{{- end}}
{{- if .SSLPreferServerCiphers}}
ssl_prefer_server_ciphers on;
{{- end}}
{{- if .SSLDHParam}}
ssl_dhparam {{.SSLDHParam}};
{{- end}}

{{- if .OpenTracingEnabled}}
opentracing on;
Expand Down
16 changes: 12 additions & 4 deletions internal/configs/version1/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,18 @@ http {
default upgrade;
'' $default_connection_header;
}
{{- if .SSLProtocols}}ssl_protocols {{.SSLProtocols}};{{end}}
{{- if .SSLCiphers}}ssl_ciphers "{{.SSLCiphers}}";{{end}}
{{- if .SSLPreferServerCiphers}}ssl_prefer_server_ciphers on;{{end}}
{{- if .SSLDHParam}}ssl_dhparam {{.SSLDHParam}};{{end}}
{{- if .SSLProtocols}}
ssl_protocols {{.SSLProtocols}};
{{- end}}
{{- if .SSLCiphers}}
ssl_ciphers "{{.SSLCiphers}}";
{{- end}}
{{- if .SSLPreferServerCiphers}}
ssl_prefer_server_ciphers on;
{{- end}}
{{- if .SSLDHParam}}
ssl_dhparam {{.SSLDHParam}};
{{- end}}

{{- if .OpenTracingEnabled}}
opentracing on;
Expand Down
0