-
Notifications
You must be signed in to change notification settings - Fork 89
Add TLS support #87
base: master
Are you sure you want to change the base?
Add TLS support #87
Conversation
I think we'd likely want to set the cloudworker/lib/runtime/fetch.js Line 78 in 93f853d
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. Just one minor fix. Also, please merge in master. Thanks!
if (httpsServer) { | ||
httpsServer.close(() => { }) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks the return
was dropped by this change. It's required so that a new server is created if stopping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
e2edb35
to
b25003a
Compare
This adds support for processing HTTPS requests on a separate port from the usual HTTP requests. It does so by adding options for specifying the path to a TLS key and a TLS certificate. This can be useful for testing worker scripts that do things like custom redirects depending on whether the user is making an encrypted request or not. Note: This PR does not yet set special `request.cf` attributes such as `tlsVersion` and `tlsCipher` as described here: https://developers.cloudflare.com/workers/reference/request-attributes/
b25003a
to
a417b7b
Compare
@hankjacobs I added back the |
Hi guys! Any plans on merging this PR? |
I would be interested in the functionality in this PR. Any plans on merging it? |
@hankjacobs Can we get this pulled in? We really need it. :) |
This adds support for processing HTTPS requests on a separate port from
the usual HTTP requests. It does so by adding options for specifying the
path to a TLS key and a TLS certificate.
This can be useful for testing worker scripts that do things like custom
redirects depending on whether the user is making an encrypted request
or not.
Note: This PR does not yet set special
request.cf
attributes such astlsVersion
andtlsCipher
as described here:https://developers.cloudflare.com/workers/reference/request-attributes/