-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.docker.yaml
More file actions
64 lines (59 loc) · 2.24 KB
/
Copy pathconfig.docker.yaml
File metadata and controls
64 lines (59 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# moqx relay — docker runtime config template.
#
# entrypoint.sh resolves the ${MOQX_*} placeholders from environment
# variables (each with a default) via envsubst, then serves the result —
# unless a full config is mounted at /etc/moqx/config.yaml.
#
# The performance defaults below are inherited by the CI deploy (which sets
# no perf vars) and by the interop relay adapter. Override any value via its
# MOQX_* env var; the default for each lives in docker/entrypoint.sh.
threads: ${MOQX_THREADS}
use_local_forwarders: ${MOQX_LOCAL_FWD}
mvfst_bpf_steering: false
listener_defaults:
mvfst:
enable_gso: true
max_conn_packets_sent_per_loop: ${MOQX_SEND_PKTS}
max_server_recv_packets_per_loop: ${MOQX_RECV_PKTS}
udp_socket_buffer_bytes: ${MOQX_UDP_BUFFER}
ignore_path_mtu: ${MOQX_IGNORE_PATH_MTU}
# Two listeners: mvfst on MOQX_PORT and (when enabled) picoquic on
# MOQX_PICO_PORT — same cert/versions/endpoint, different stack + port.
# entrypoint.sh fills the MOQX_PICO_LISTENER placeholder below with the pico
# block, or leaves it empty when MOQX_PICO_ENABLE=false or MOQX_INSECURE=true
# (picoquic needs real TLS).
listeners:
- name: relay-mvfst
quic_stack: mvfst
moqt_versions: ${MOQX_MOQT_VERSIONS}
udp:
socket:
address: "${MOQX_BIND_ADDR}"
port: ${MOQX_PORT}
tls:
cert_file: "${MOQX_CERT}"
key_file: "${MOQX_KEY}"
insecure: ${MOQX_INSECURE}
endpoint: "${MOQX_ENDPOINT}"
${MOQX_PICO_LISTENER}
services:
default:
match:
# Two rules so both listeners + both transports work:
# exact endpoint → WebTransport on ${MOQX_ENDPOINT} (mvfst AND picoquic;
# pico only registers WT endpoints for exact-path rules)
# prefix "/" → raw QUIC (moqt://) on the base URL (mvfst). pico logs
# an "unsupported prefix" warning and ignores this rule.
- authority: {any: true}
path: {exact: "${MOQX_ENDPOINT}"}
- authority: {any: true}
path: {prefix: "/"}
cache:
enabled: ${MOQX_CACHE}
max_tracks: ${MOQX_MAX_TRACKS}
max_groups_per_track: ${MOQX_MAX_GROUPS}
admin:
port: ${MOQX_ADMIN_PORT}
track_metrics_enabled: true
address: "${MOQX_BIND_ADDR}"
plaintext: true