Domain Settings
FastGateway supports gateway-level domain settings for connection management and protocol configuration.
TCP Keepalive
Configure TCP keepalive to detect dead connections:
domainSettings:
tcpKeepalive:
probes: 3
idleTime: "60s"
interval: "10s"
| Setting | Description |
|---|---|
| probes | Number of keepalive probes before closing |
| idleTime | Time before sending first keepalive probe |
| interval | Interval between keepalive probes |
Connection Limits
Limit concurrent connections:
domainSettings:
connection:
connectionLimit: 10000
bufferLimit: "32Ki"
Timeouts
Configure request and idle timeouts:
domainSettings:
timeout:
requestReceivedTimeout: "30s"
idleTimeout: "300s"
| Setting | Description |
|---|---|
| requestReceivedTimeout | Time to receive complete request headers |
| idleTimeout | Idle connection timeout |
HTTP/3 Support
Enable HTTP/3 (QUIC):
domainSettings:
http3:
enabled: true
TLS Settings
Configure TLS options:
domainSettings:
tls:
minVersion: "TLSv1.2"
maxVersion: "TLSv1.3"
ciphers:
- "ECDHE-ECDSA-AES256-GCM-SHA384"
- "ECDHE-RSA-AES256-GCM-SHA384"
alpnProtocols:
- "h2"
- "http/1.1"
Complete Example
domainSettings:
tcpKeepalive:
probes: 3
idleTime: "60s"
interval: "10s"
connection:
connectionLimit: 10000
timeout:
requestReceivedTimeout: "30s"
idleTimeout: "300s"
http3:
enabled: true
tls:
minVersion: "TLSv1.2"
Notes
- Domain settings apply at the gateway/listener level
- TCP keepalive helps with load balancer health checks
- Connection limits prevent resource exhaustion
- HTTP/3 requires TLS to be configured