Protocols
server/protocols[]
Specifies the protocols which will be supported by the server. The server will listen on a different port for each protocol: http/8080
and https/8443
. If no protocols are specified, the server will listen for https requests only.
Additionally, the server can be configured to expect the PROXY Protocol header by using the *_proxy
values.
Note that if the proxy protocol is enabled for a given protocol, all traffic for that protocol will be expected to contain the PROXY protocol headers. That is, the following entries are exclusive:
http
andhttp_proxy
https
andhttps_proxy
protocol | Port | Description |
---|---|---|
http | 8080 | HTTP |
https | 8443 | HTTPS |
http_proxy | 8080 | HTTP with Proxy Protocol |
https_proxy | 8443 | HTTPS with Proxy Protocol |
Properties
Name | Type | Constraints | Description |
---|---|---|---|
protocols | Array of string | Values: http , https , http_proxy , https_proxy Default value: https | The name(s) of the protocols which the gateway will listen on. |
Example
server:
protocols:
- https
- http_proxy
Updated over 2 years ago