Clean up the tls middleware README (#631)
This commit is contained in:
parent
8fc7ec776d
commit
e5b2cbb701
1 changed files with 22 additions and 4 deletions
|
@ -1,13 +1,31 @@
|
||||||
# tls
|
# tls
|
||||||
|
|
||||||
*tls* extra TLS configuration.
|
*tls* allows you to configure the server certificates for the TLS and gRPC servers.
|
||||||
|
For other types of servers it is ignored.
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
~~~ txt
|
~~~ txt
|
||||||
tls [STUFF]
|
tls CERT KEY CA
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
**STUFF** is things you'll need to configure TLS.
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
Start a DNS-over-TLS server.
|
||||||
|
|
||||||
|
~~~
|
||||||
|
tls://.:4453 {
|
||||||
|
tls cert.pem key.pem ca.pem
|
||||||
|
proxy . /etc/resolv.conf
|
||||||
|
}
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Start a DNS-over-gRPC server. If the `tls` directive were omitted, then
|
||||||
|
it would use plain HTTP not HTTPS.
|
||||||
|
|
||||||
|
~~~
|
||||||
|
grpc://.:443 {
|
||||||
|
tls cert.pem key.pem ca.pem
|
||||||
|
proxy . /etc/resolv.conf
|
||||||
|
}
|
||||||
|
~~~
|
||||||
|
|
Loading…
Add table
Reference in a new issue