refactor(http): use cert and key for Deno.listenTls() (#4479)

* refactor(http): use `cert` and `key` for `Deno.listenTls()`

* fix
This commit is contained in:
Asher Gomez 2024-03-13 13:12:46 +11:00 committed by GitHub
parent 9871f24014
commit 1dc1ae5ab5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,8 +246,8 @@ export class Server {
const listener = Deno.listenTls({
port: this.#port ?? HTTPS_PORT,
hostname: this.#host ?? "0.0.0.0",
certFile,
keyFile,
cert: Deno.readTextFileSync(certFile),
key: Deno.readTextFileSync(keyFile),
transport: "tcp",
// ALPN protocol support not yet stable.
// alpnProtocols: ["h2", "http/1.1"],