... | @@ -72,16 +72,16 @@ Configuring DoH is more complex, as e.g. multiple views can use the same address |
... | @@ -72,16 +72,16 @@ Configuring DoH is more complex, as e.g. multiple views can use the same address |
|
|
|
|
|
A HTTP/2 server is configured by the following options:
|
|
A HTTP/2 server is configured by the following options:
|
|
```
|
|
```
|
|
http-server <string> [ port <integer> ] [ tls <string> ] { <address_match_element>; ... };
|
|
https-server <string> [ port <integer> ] [ tls <string> ] { <address_match_element>; ... };
|
|
```
|
|
```
|
|
A DoH endpoint for a server is configure with:
|
|
A DoH endpoint for a server is configure with:
|
|
```
|
|
```
|
|
doh-endpoint <quoted-string> [server <string> ]
|
|
https-endpoint <quoted-string> [server <string> ]
|
|
```
|
|
```
|
|
|
|
|
|
DISCUSS:
|
|
DISCUSS:
|
|
- I would recommend matching the `http-server`/`server` strings, e.g.: `doh-endpoint <quoted-string> [http-server <string> ]` (@ondrej)
|
|
- I would recommend matching the `https-server`/`server` strings, e.g.: `https-endpoint <quoted-string> [https-server <string> ]` (@ondrej)
|
|
- Is it `doh-endpoint` or `http(2)-endpoint`? (@ondrej)
|
|
- Is it `https-endpoint` or `http(2)-endpoint`? (@ondrej)
|
|
|
|
|
|
### Example
|
|
### Example
|
|
```
|
|
```
|
... | @@ -90,8 +90,8 @@ tls my_config { |
... | @@ -90,8 +90,8 @@ tls my_config { |
|
cert-file "cert.pem";
|
|
cert-file "cert.pem";
|
|
}
|
|
}
|
|
listen-on port 853 tls my_config { any; };
|
|
listen-on port 853 tls my_config { any; };
|
|
http-server my_server port 443 tls my_config { any; };
|
|
https-server my_server port 443 tls my_config { any; };
|
|
doh-endpoint "/dns-query" server my_server;
|
|
https-endpoint "/dns-query" server my_server;
|
|
```
|
|
```
|
|
|
|
|
|
DISCUSS:
|
|
DISCUSS:
|
... | | ... | |