Support running HTTPS locally for router
What does this merge request do and why?
Relates to: Support running HTTPS locally for router (#2103 - closed)
Screenshots
How to set up and validate locally
- Checkout the branch
2103-support-running-https-locally-for-router
- Stop the GDK
gdk stop
orgdk kill
if necessary - Verify that you're running
http-router
with GDK enabling-the-http-router - Enable HTTPs in your GDK update-gdkyml-for-https
- Since
HTTP-Router
is using Node.js, and Node does not use the system root store, therefore it won't acceptmkcert
certificates automatically. Instead, you will have to set theNODE_EXTRA_CA_CERTS
environment variable.export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
- Reconfigure your GDK
gdk reconfigure
- Restart your GDK
gdk restart
- You can monitor the router with
gdk tail gitlab-http-router
to verify that has been properly! - Verify that everything works as expected
🎉
note: you might get the following error in the console:
✘ [ERROR] WARNING: known issue with `fetch()` requests to custom HTTPS ports in published Workers:
Impacted categories
The following categories relate to this merge request:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Merge request checklist
-
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. -
gdk doctor
test added, if needed. -
Add the ~highlight
label if this MR should be included in theCHANGELOG.md
.
Closes #2103 (closed)
Edited by Bojan Marjanovic