@@ -14,18 +14,48 @@ The config file should be written in YAML format, and is reloaded on each connec
1414## Sample Config
1515
1616```
17- tls_config :
18- # Certificate and key files for server to use to authenticate to client
17+ tls_server_config :
18+ # Certificate and key files for server to use to authenticate to client.
1919 cert_file: <filename>
2020 key_file: <filename>
2121
22- # Server policy for client authentication. Maps to ClientAuth Policies
22+ # Server policy for client authentication. Maps to ClientAuth Policies.
2323 # For more detail on clientAuth options: [ClientAuthType](https://golang.org/pkg/crypto/tls/#ClientAuthType)
2424 [ client_auth_type: <string> | default = "NoClientCert" ]
2525
26- # CA certificate for client certificate authentication to the server
26+ # CA certificate for client certificate authentication to the server.
2727 [ client_ca_file: <filename> ]
2828
29+ # Minimum TLS version that is acceptable.
30+ [ min_version: <string> | default = "TLS12" ]
31+
32+ # Maximum TLS version that is acceptable.
33+ [ max_version: <string> | default = "TLS13" ]
34+
35+ # List of supported cipher suites for TLS versions up to TLS 1.2. If empty,
36+ # Go default cipher suites are used. Available cipher suites are documented
37+ # in the go documentation:
38+ # https://golang.org/pkg/crypto/tls/#pkg-constants
39+ [ cipher_suites:
40+ [ - <string> ] ]
41+
42+ # prefer_server_cipher_suites controls whether the server selects the
43+ # client's most preferred ciphersuite, or the server's most preferred
44+ # ciphersuite. If true then the server's preference, as expressed in
45+ # the order of elements in cipher_suites, is used.
46+ [ prefer_server_cipher_suites: <bool> | default = true ]
47+
48+ # Elliptic curves that will be used in an ECDHE handshake, in preference
49+ # order. Available curves are documented in the go documentation:
50+ # https://golang.org/pkg/crypto/tls/#CurveID
51+ [ curve_preferences:
52+ [ - <string> ] ]
53+
54+ http_server_config:
55+ # Enable HTTP/2 support. Note that HTTP/2 is only supported with TLS.
56+ # This can not be changed on the fly.
57+ [ http2: <bool> | default = true ]
58+
2959# List of usernames and hashed passwords that have full access to the web
3060# server via basic authentication. If empty, no basic authentication is
3161# required. Passwords are hashed with bcrypt.
0 commit comments