Skip to content

Commit 636cc48

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

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

runtime/reference/cli/serve.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)