diff --git a/src/templates/partials/mysql.hbs b/src/templates/partials/mysql.hbs index 7c2e9c2b..bd6008ca 100644 --- a/src/templates/partials/mysql.hbs +++ b/src/templates/partials/mysql.hbs @@ -7,4 +7,4 @@ ssl-key = /path/to/private_key {{#if output.ciphers.length}} ssl-cipher = {{{join output.ciphers ":"}}} {{/if}} -tls_version = {{#each output.protocols}}{{this}}{{#unless @last}},{{/unless}}{{/each}} \ No newline at end of file +tls_version = {{join output.protocols ","}} diff --git a/src/templates/partials/nginx.hbs b/src/templates/partials/nginx.hbs index 9973b190..f29d9c7a 100644 --- a/src/templates/partials/nginx.hbs +++ b/src/templates/partials/nginx.hbs @@ -42,7 +42,7 @@ server { {{/if}} # {{form.config}} configuration - ssl_protocols{{#each output.protocols}} {{this}}{{/each}}; + ssl_protocols {{join output.protocols " "}}; {{#if output.ciphers.length}} ssl_ciphers {{{join output.ciphers ":"}}}; {{/if}} diff --git a/src/templates/partials/proftpd.hbs b/src/templates/partials/proftpd.hbs index 4b4852d4..08964da6 100644 --- a/src/templates/partials/proftpd.hbs +++ b/src/templates/partials/proftpd.hbs @@ -19,7 +19,7 @@ TLSDHParamFile /path/to/dhparam {{/if}} # {{form.config}} configuration -TLSProtocol {{#each output.protocols}} {{this}}{{/each}} +TLSProtocol {{join output.protocols " "}} {{#if output.ciphers.length}} TLSCipherSuite {{{join output.ciphers ":"}}} {{/if}} diff --git a/src/templates/partials/redis.hbs b/src/templates/partials/redis.hbs index 805bd512..5967740d 100644 --- a/src/templates/partials/redis.hbs +++ b/src/templates/partials/redis.hbs @@ -19,7 +19,7 @@ tls-dh-params-file /path/to/dhparam {{/if}} # {{form.config}} configuration -tls-protocols "{{#each output.protocols}}{{this}}{{#unless @last}} {{/unless}}{{/each}}" +tls-protocols "{{join output.protocols " "}}" {{#if output.ciphers.length}} tls-ciphers {{{join output.ciphers ":"}}} {{/if}} diff --git a/src/templates/partials/tomcat.hbs b/src/templates/partials/tomcat.hbs index 0ebcfa10..3073812d 100644 --- a/src/templates/partials/tomcat.hbs +++ b/src/templates/partials/tomcat.hbs @@ -17,7 +17,7 @@ {{/if}} disableSessionTickets="true" honorCipherOrder="{{#if output.serverPreferredOrder}}true{{else}}false{{/if}}" - protocols="{{#each output.protocols}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}"> + protocols="{{join output.protocols ", "}}"> - \ No newline at end of file +