Local HTTPS with Docker - Code with Hugo - Mar 25th 2019
This week is Local HTTPS, why and how (Docker) edition.
Hot off the press
The post: Docker Compose Local HTTPS with nginx or Caddy
The GitHub repo for local HTTPS/SSL/TLS examples for Docker Compose github.com/HugoDF/docker-compose-local-https.
Also new this week, I’ve added some miscellaneous page: codewithhugo.com/about, codewithhugo.com/uses. This keeps the number of meta items on the site in check by hiding them behind a couple more clicks 😄.
If you missed it
JavaScript Object.defineProperty for a function: create mock object instances in Jest or AVA - how to use Object.defineProperty with functions to mock method behaviour with simple objects.
A guide to Express request and response mocking/stubbing with Jest or sinon.
Pass cookies with axios or fetch requests: When sending requests from client-side JavaScript, by default cookies are not passed, here’s how to enable them in the axios
module and using the fetch
API.
From the web
github.com/wesbos/awesome-uses, a collection of /uses
pages, which document what a particular persons uses in their day to day, like codewithhugo.com/uses
Defining a Distinguished Engineer - Jessie Frazelle’s Blog post on a role that’s not always completely understood is insightful.
All About mailto: Links - Chris Coyier explains the how and why of mailto:
links.