sdc-BE TLS support
[sdc.git] / catalog-be / src / main / docker / backend / chef-repo / cookbooks / sdc-catalog-be / templates / default / ssl-ini.erb
1 # ---------------------------------------
2 # Module: ssl
3 --module=ssl
4
5 ### TLS(SSL) Connector Configuration
6
7 ## Connector host/address to bind to
8 # jetty.ssl.host=0.0.0.0
9
10 ## Connector port to listen on
11 jetty.ssl.port=<%= @https_port %>
12
13 ## Connector idle timeout in milliseconds
14 # jetty.ssl.idleTimeout=30000
15
16 ## Connector socket linger time in seconds (-1 to disable)
17 # jetty.ssl.soLingerTime=-1
18
19 ## Number of acceptors (-1 picks default based on number of cores)
20 # jetty.ssl.acceptors=-1
21
22 ## Number of selectors (-1 picks default based on number of cores)
23 # jetty.ssl.selectors=-1
24
25 ## ServerSocketChannel backlog (0 picks platform default)
26 # jetty.ssl.acceptorQueueSize=0
27
28 ## Thread priority delta to give to acceptor threads
29 # jetty.ssl.acceptorPriorityDelta=0
30
31 ## Whether request host names are checked to match any SNI names
32 # jetty.ssl.sniHostCheck=true
33
34 ## max age in seconds for a Strict-Transport-Security response header (default -1)
35 # jetty.ssl.stsMaxAgeSeconds=31536000
36
37 ## include subdomain property in any Strict-Transport-Security header (default false)
38 # jetty.ssl.stsIncludeSubdomains=true
39
40 ### SslContextFactory Configuration
41 ## Note that OBF passwords are not secure, just protected from casual observation
42 ## See http://www.eclipse.org/jetty/documentation/current/configuring-security-secure-passwords.html
43
44 ## Keystore file path (relative to $jetty.base)
45 <% unless @keystore_path.nil? || @keystore_path.strip.empty?  -%>
46 jetty.sslContext.keyStorePath=<%= @keystore_path %>
47 <% end -%>
48
49 ## Truststore file path (relative to $jetty.base)
50 <% unless @truststore_path.nil? || @truststore_path.strip.empty? -%>
51 jetty.sslContext.trustStorePath=<%= @truststore_path %>
52 <% end -%>
53
54 ## Keystore password
55 <% unless @keystore_password.nil? || @keystore_password.strip.empty? -%>
56 jetty.sslContext.keyStorePassword=<%= @keystore_password %>
57 <% end -%>
58
59 ## Keystore type and provider
60 # jetty.sslContext.keyStoreType=JKS
61 # jetty.sslContext.keyStoreProvider=
62
63 ## KeyManager password
64 <% unless @keystore_password.nil? || @keystore_password.strip.empty? -%>
65 jetty.sslContext.keyManagerPassword=<%= @keystore_password %>
66 <% end -%>
67
68 ## Truststore password
69 # tp<%= @truststore_password %>end
70 # kp<%= @keystore_password %>end
71 <% unless @truststore_password.nil? || @truststore_password.strip.empty? -%>
72 jetty.sslContext.trustStorePassword=<%= @truststore_password %>
73 <% end -%>
74
75 ## Truststore type and provider
76 # jetty.sslContext.trustStoreType=JKS
77 # jetty.sslContext.trustStoreProvider=
78
79 ## whether client certificate authentication is required
80 jetty.sslContext.needClientAuth=<%= !@truststore_password.nil? && !@truststore_password.strip.empty? %>
81
82 ## Whether client certificate authentication is desired
83 # jetty.sslContext.wantClientAuth=false
84
85 ## Whether cipher order is significant (since java 8 only)
86 # jetty.sslContext.useCipherSuitesOrder=true
87
88 ## To configure Includes / Excludes for Cipher Suites or Protocols see tweak-ssl.xml example at
89 ## https://www.eclipse.org/jetty/documentation/current/configuring-ssl.html#configuring-sslcontextfactory-cipherSuites
90
91 ## Set the size of the SslSession cache
92 # jetty.sslContext.sslSessionCacheSize=-1
93
94 ## Set the timeout (in seconds) of the SslSession cache timeout
95 # jetty.sslContext.sslSessionTimeout=-1
96
97 ## Allow SSL renegotiation
98 # jetty.sslContext.renegotiationAllowed=true
99 # jetty.sslContext.renegotiationLimit=5