-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support custom SSL certificates and completely disabling cert validat…
…ion (#1882) * Use Node TLS options in workerd outboundService * Changesets * Pass cert content to workerd * Providing certs is already supported by Miniflare * Cleanup
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@shopify/cli-hydrogen': patch | ||
--- | ||
|
||
Support Node's `NODE_TLS_REJECT_UNAUTHORIZED` and `NODE_EXTRA_CA_CERTS` [environment variables](https://nodejs.org/api/cli.html#environment-variables) in the worker environment. | ||
|
||
Use this at your own risk to disable certificate validation or provide additional CA certificates when making HTTPS requests from the worker: | ||
|
||
```sh | ||
# Disable certificate validation | ||
NODE_TLS_REJECT_UNAUTHORIZED=0 npm run dev | ||
|
||
# Provide additional CA certificates | ||
NODE_EXTRA_CA_CERTS=/usr/.../ca-certificates/my-file.crt npm run dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters