feat: updated gateway to quic

This commit is contained in:
=
2025-03-04 23:55:40 +05:30
parent f376eaae13
commit 9bfc2a5dd2
10 changed files with 610 additions and 280 deletions
@@ -1,5 +1,4 @@
import crypto from "node:crypto";
import { ForbiddenError } from "@casl/ability";
import * as x509 from "@peculiar/x509";
import { z } from "zod";
@@ -474,7 +473,7 @@ export const gatewayServiceFactory = ({
relayHost,
relayPort: Number(relayPort),
tlsOptions: {
key: privateKey,
key: privateKey.toString(),
ca: `${gatewayCaCert.toString("pem")}\n${rootCaCert.toString("pem")}`.trim(),
cert: clientCert.toString("pem")
},