Skip to content

Commit 4ed927b

Browse files
committed
docs: Add section on HTTPS support for the deno serve CLI subcommand
1 parent 13b0aa6 commit 4ed927b

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

runtime/reference/cli/serve.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
last_modified: 2026-06-17
2+
last_modified: 2026-06-29
33
title: "deno serve"
44
oldUrl: /runtime/manual/tools/serve/
55
command: serve
@@ -139,6 +139,15 @@ specific interface:
139139
deno serve --host=127.0.0.1 server.ts
140140
```
141141

142+
## HTTPS support
143+
144+
HTTPS can be enabled by providing the server TLS certificate and private key
145+
pair as PEM-encoded files:
146+
147+
```sh
148+
deno serve --tls-cert cert.pem --tls-key key.pem
149+
```
150+
142151
## Horizontal scaling
143152

144153
Run multiple server instances across CPU cores for better throughput:

0 commit comments

Comments
 (0)