http/3 support

This commit is contained in:
KingKDot
2026-07-22 22:53:44 -05:00
parent dbe0e8ee21
commit c4616ab57a
4 changed files with 36 additions and 1 deletions
+6
View File
@@ -762,6 +762,8 @@ async function startServer() {
handleWebSocketMessage,
handleWebSocketClose,
}),
// HTTP/3 mfs (bun barely supports it but we rocking it)
...(tls ? { http3: true, http1: true } : {}),
});
@@ -830,6 +832,9 @@ async function startServer() {
if (tls) {
logServerStartup(server, tls.certPathUsed, tls.source);
logger.info(
`[HTTP/3] Enabled (QUIC over UDP port ${server.port}; HTTP/1.1 TCP fallback enabled)`,
);
logger.info(`[HTTP] maxRequestBodySize=${MAX_HTTP_BODY_BYTES} bytes`);
} else {
const hostname = server.hostname || "0.0.0.0";
@@ -842,6 +847,7 @@ async function startServer() {
logger.info("");
logger.info("External access should be HTTPS/WSS via your reverse proxy platform.");
logger.info("Set this mode only when TLS is terminated by the platform (for example Render). ");
logger.info("[HTTP/3] Disabled (in-process TLS is offloaded to the reverse proxy)");
logger.info(`[HTTP] maxRequestBodySize=${MAX_HTTP_BODY_BYTES} bytes`);
logger.info("========================================");
}