Skip to content

listeners

Sockets to accept traffic on. When empty, web (:80) and websecure (:443, TLS) are used.

Type: ListenAddress · Required

Address to bind, e.g. :443 or 127.0.0.1:8080.

Type: http · https · tcp · udp

Protocol. Inferred when omitted: https if tls is set, otherwise http.

  • http: Plain HTTP/1.1 and h2c.
  • https: HTTP over TLS (HTTP/1.1 and HTTP/2).
  • tcp: Raw TCP, optionally with TLS termination or SNI passthrough.
  • udp: UDP datagrams.

listeners.<name>.proxy_protocol planned for v0.6

Section titled “listeners.<name>.proxy_protocol ”

Type: object

Accept the PROXY protocol (v1 or v2) from these sources only.

Type: list of IpNetwork · Required

Sources allowed to send a PROXY header. Others are rejected.

Type: object · Default: {"idle":"1m","read":"1m","request_header":"10s","write":"1m"}

Client-side timeouts.

Type: Duration · Default: 1m

How long an idle keep-alive connection is kept open.

Type: Duration · Default: 1m

Longest wait for data from the client while a request or upgraded connection is open.

Type: Duration · Default: 10s

Time allowed to receive the complete request headers, counted from their first byte (protects against slow-header attacks).

Type: Duration · Default: 1m

Longest wait for the client to accept data.

Type: object

TLS termination settings.

Type: modern · intermediate · Default: intermediate

TLS versions and cipher suites.

  • modern: TLS 1.3 only.
  • intermediate: TLS 1.2 and 1.3 with forward-secret AEAD ciphers (Mozilla “intermediate”).