Allow registry clients to connect via http2

Http2 will be enabled by default and can be disabled with a configuration option.

Signed-off-by: Adam Duke <adam.v.duke@gmail.com>
This commit is contained in:
Adam Duke 2016-07-14 15:48:03 -04:00
parent c9fd26e9ef
commit ac009c86f1
5 changed files with 82 additions and 1 deletions

View file

@ -198,6 +198,8 @@ information about each option that appears later in this page.
addr: localhost:5001
headers:
X-Content-Type-Options: [nosniff]
http2:
disabled: false
notifications:
endpoints:
- name: alistener
@ -910,6 +912,8 @@ configuration may contain both.
addr: localhost:5001
headers:
X-Content-Type-Options: [nosniff]
http2:
disabled: false
The `http` option details the configuration for the HTTP server that hosts the registry.
@ -1112,6 +1116,29 @@ Including `X-Content-Type-Options: [nosniff]` is recommended, so that browsers
will not interpret content as HTML if they are directed to load a page from the
registry. This header is included in the example configuration files.
### http2
The `http2` struct within `http` is **optional**. Use this to control http2
settings for the registry.
<table>
<tr>
<th>Parameter</th>
<th>Required</th>
<th>Description</th>
</tr>
<tr>
<td>
<code>disabled</code>
</td>
<td>
no
</td>
<td>
A boolean that determines if http2 support should be disabled
</td>
</tr>
</table>
## notifications