plain_quic_port

Added in version 1.7.30.

This server exposes a QUIC listening port in front of another local server.

It terminates QUIC locally and forwards accepted streams to the configured next server.

The following common keys are supported:

listen

required, type: udp listen

UDP listening configuration for this server.

The instance count setting will be ignored if listen_in_worker is correctly enabled.

quic_server

required, type: rustls server config

Cryptographic configuration for this QUIC server.

offline_rebind_port

optional, type: u16

Rebind port used for graceful shutdown.

The new port should be reachable from the client or it won’t work as expected.

default: not set

server

required, type: str

Name of the next server to which accepted connections are forwarded.

The next server must be able to accept TCP connections.

Example

listen: 0.0.0.0:443
quic_server:
  cert_pairs:
    - certificate: server.crt
      private_key: server.key
server: tcp-stream-in