--- name: Configure TLS on an HTTP server --- Set the `tls` key to configure TLS. Both `key` and `cert` are required. The `key` should be the contents of your private key; `cert` should be the contents of your issued certificate. Use [`Bun.file()`](/docs/api/file-io#reading-files-bun-file) to read the contents. ```ts const server = Bun.serve({ fetch: (request) => new Response("Welcome to Bun!"), tls: { cert: Bun.file("cert.pem"), key: Bun.file("key.pem"), }, }); ``` --- By default Bun trusts the default Mozilla-curated list of well-known root CAs. To override this list, pass an array of certificates as `ca`. ```ts const server = Bun.serve({ fetch: (request) => new Response("Welcome to Bun!"), tls: { cert: Bun.file("cert.pem"), key: Bun.file("key.pem"), ca: [Bun.file("ca1.pem"), Bun.file("ca2.pem")], }, }); ``` Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/html (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2018-08-26Added remote client IP to API login failure error message.Gravatar dzaikos 1-2/+5
2018-08-26Add german translation stringGravatar stratmaster 2-3/+5
2018-08-25Add remove button in feed edit pageGravatar Frédéric Guillot 7-10/+43
2018-08-25Split integration tests into multiple filesGravatar Frédéric Guillot 11-1267/+1329
2018-08-25Update scraper rule for heise.deGravatar Frédéric Guillot 1-1/+1
2018-08-25Expose real error messages for internal server API errorsGravatar Frédéric Guillot 6-26/+25
2018-08-25Simplify context keysGravatar Frédéric Guillot 2-50/+20
2018-08-25Added remote client IP to login failure error message.Gravatar dzaikos 1-2/+4
2018-08-24Move Golang API client hereGravatar Frédéric Guillot 12-183/+132
2018-08-24Use canonical importsGravatar Frédéric Guillot 263-956/+962