Using the .well-known/ folder on a GitHub Pages hosted Jekyll site

Published: December 14, 2018

Tags:

Recently I registered this site for Brave Rewards.

There were two options for doing this:

  1. Upload a file to the .well-known/ directory on the website
  2. Create a DNS record

I decided to opt for the former.

Initially, I thought it was as simple commiting the file to the repo in the specified location. However, after pushing and letting the site build I got a 404 when attempting to access https://maxchadwick.xyz/.well-known/brave-payments-verification.txt.

Some quick Googling lead me to keybase/keybase-issues GitHub issue #366.

After scrolling thourgh the comments I saw the following suggestion:

With Jekyll on GitHub Pages just add a file keybase.txt in your root and add the following header:

layout: none
permalink: .well-known/foo.txt

I made the update and pushed again. I then reloaded the page and saw expected response. Mission accomplished :boom:

Max Chadwick Hi, I'm Max!

I'm a software developer who mainly works in PHP, but loves dabbling in other languages like Go and Ruby. Technical topics that interest me are monitoring, security and performance. I'm also a stickler for good documentation and clear technical writing.

During the day I lead a team of developers and solve challenging technical problems at Rightpoint where I mainly work with the Magento platform. I've also spoken at a number of events.

In my spare time I blog about tech, work on open source and participate in bug bounty programs.

If you'd like to get in contact, you can find me on Twitter and LinkedIn.