-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Custom https cert #4475
feat: Custom https cert #4475
Conversation
|
caf1e35
to
deaa1f5
Compare
blocked for now (see #2118 (comment)) |
I know this is blocked for the moment, but I would like to propose a simpler implementation, for when we are in a position to land this. Instead of using command line arguments, which need to be threaded down through the various calls. How about we just have a pair of environment variables, e.g. Is there a reason (e.g. prior art) for doing this via command line arguments that I am missing? |
@petebacondarwin I did consider that as it was a much simpler implementation, but considering this CLI aims to support configuration both through flags and a config file (wrangler.toml), I thought it best not to break that pattern. |
Ah yes and looking through the original issue it seems that there is value in being able to set different certs for each wrangler instance, which is more awkward using env vars - #2118 (comment) |
deaa1f5
to
c57024d
Compare
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7932008257/npm-package-wrangler-4475 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/4475/npm-package-wrangler-4475 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7932008257/npm-package-wrangler-4475 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7932008257/npm-package-create-cloudflare-4475 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7932008257/npm-package-cloudflare-kv-asset-handler-4475 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7932008257/npm-package-miniflare-4475 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7932008257/npm-package-cloudflare-pages-shared-4475 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4475 +/- ##
==========================================
- Coverage 70.44% 70.40% -0.05%
==========================================
Files 297 297
Lines 15431 15448 +17
Branches 3951 3960 +9
==========================================
+ Hits 10871 10876 +5
- Misses 4560 4572 +12
|
I rebased and fixed up this branch. Will do a proper review later this week. |
6fc9339
to
cbdef85
Compare
cbdef85
to
d6351b9
Compare
Thanks a lot for this and for including it in the latest release! However, when I searched for the first version to support it, I found no mention of it in the recent releases. |
Gosh! You are right. That is my mistake for landing this without a changeset. It was first available in 3.28.3. I'll update the changelog accordingly. |
Fixes #2118
What this PR solves / how to test:
Add flags
--https-key-path
and--https-cert-path
to wrangler pages dev commandAuthor has addressed the following:
--https-cert-path
and--https-key-path
options forwrangler dev
andwrangler pages dev
cloudflare-docs#13032