Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View beary's full-sized avatar
🌞
𝕷𝖔𝖓𝖌 𝖒𝖆𝖞 𝖙𝖍𝖊 𝖘𝖚𝖓 𝖘𝖍𝖎𝖓𝖊

beary beary

🌞
𝕷𝖔𝖓𝖌 𝖒𝖆𝖞 𝖙𝖍𝖊 𝖘𝖚𝖓 𝖘𝖍𝖎𝖓𝖊
  • GuangZhou, China
View GitHub Profile
@cvan
cvan / HOWTO.md
Last active March 20, 2024 17:56
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
@soarez
soarez / ca.md
Last active April 22, 2024 03:01
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.