From d7c2bb483d8bdb0c53e56c5b5ceef251a8abc801 Mon Sep 17 00:00:00 2001 From: Jim Ryan Date: Wed, 31 Jan 2024 17:29:37 +0000 Subject: [PATCH] template file space --- internal/configs/version1/nginx-plus.tmpl | 16 ++++++++++++---- internal/configs/version1/nginx.tmpl | 16 ++++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/internal/configs/version1/nginx-plus.tmpl b/internal/configs/version1/nginx-plus.tmpl index 0dbef3471f..0cf4575b21 100644 --- a/internal/configs/version1/nginx-plus.tmpl +++ b/internal/configs/version1/nginx-plus.tmpl @@ -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; diff --git a/internal/configs/version1/nginx.tmpl b/internal/configs/version1/nginx.tmpl index aa452d9fa4..4c45f186d2 100644 --- a/internal/configs/version1/nginx.tmpl +++ b/internal/configs/version1/nginx.tmpl @@ -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;