fanybook
(fanybook)
November 7, 2018, 7:46am
#1
no examples in docs and GitHub - caddyserver/examples: OBSOLETE. This repo was for Caddy v1. For v2 and newer, see our forum's wiki category.
which is right?
tls xxx@xxx.com {
protocols 1.0 1.2
}
or
tls xxx@xxx.com {
protocols tls1.0 tls1.2
}
Hi @fanybook ,
As part of the tls
directive, setting protocols manually is documented here: https://caddyserver.com/docs/tls#protocols
fanybook
(fanybook)
November 7, 2018, 10:37am
#3
i known, but i need a example
Which of the following is right?
tls xxx@xxx.com {
protocols 1.0 1.2
}
or
tls xxx@xxx.com {
protocols tls1.0 tls1.2
}
this ?
tls xxx@xxx.com {
protocols tls1.0 tls1.2
}
The correct parameters are exactly as listed on the docs page.
Protocols
The following protocols are supported, in descending order of preference:
tls1.2 (default min and max)
tls1.1
tls1.0
– https://caddyserver.com/docs/tls#protocols
You can see the strings in use yourself in the source code, here:
https://github.com/mholt/caddy/blob/9239f3cbcc209fb7ec2a33003ccf121da3fb3455/caddytls/config.go#L579-L586
fanybook
(fanybook)
November 8, 2018, 1:56am
#5
What i need is an accurate example, include the tls xxx@xxx.com { ... }
.
There are no examples in the document.
Your own example above is valid. We welcome suggestions to update our documentation. Feel free to open an issue at https://github.com/mholt/caddy/issues/new and suggest an example to add to the doc.
system
(system)
closed
February 6, 2019, 2:03am
#7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.