Skip to content

Commit

Permalink
Merge pull request mozilla#228 from janbrasna/upd/join-output-protocols
Browse files Browse the repository at this point in the history
Join output protocols
  • Loading branch information
gene1wood authored Jan 5, 2024
2 parents a93ea76 + aef4045 commit 429d1cc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/templates/partials/mysql.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
tls_version = {{join output.protocols ","}}
2 changes: 1 addition & 1 deletion src/templates/partials/nginx.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/partials/proftpd.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/partials/redis.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
4 changes: 2 additions & 2 deletions src/templates/partials/tomcat.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ", "}}">

<Certificate
certificateFile="/path/to/signed_certificate"
Expand All @@ -26,4 +26,4 @@
</SSLHostConfig>

<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
</Connector>
</Connector>

0 comments on commit 429d1cc

Please sign in to comment.