mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
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:
parent
9871f24014
commit
1dc1ae5ab5
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user