Skip to content

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

image

How to set up and validate locally

  1. Checkout the branch 2103-support-running-https-locally-for-router
  2. Stop the GDK gdk stop or gdk kill if necessary
  3. Verify that you're running http-router with GDK enabling-the-http-router
  4. Enable HTTPs in your GDK update-gdkyml-for-https
  5. Since HTTP-Router is using Node.js, and Node does not use the system root store, therefore it won't accept mkcert certificates automatically. Instead, you will have to set the NODE_EXTRA_CA_CERTS environment variable.
    export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
  6. Reconfigure your GDK gdk reconfigure
  7. Restart your GDK gdk restart
  8. You can monitor the router with gdk tail gitlab-http-router to verify that has been properly!
  9. 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:

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 the CHANGELOG.md.

Closes #2103 (closed)

Edited by Bojan Marjanovic

Merge request reports