Alright, here are some rough notes on getting https://github.com/voxpelli/webpage-micropub-to-github working with my blog, which is live at https://blog.bmannconsulting.com
I used the deploy to Heroku button, got it running right away.
There were a bunch of things I needed to add to my site to work with this stuff. First, there's this:
<link rel="micropub" href="https://example.com/micropub/main">
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
Instead of example.com, that's bmcblog-micropub.herokuapp.com.
For the indieauth steps you're going to have to do, you'll need to add at least one auth provider. For me, Github was the only one that worked. So, you need to edit your Github profile so that the link in your profile links to your blog. Then you'll need to add somewhere on your web page (doesn't have to be visible), the following:
A visible link: <a href="https://github.com/bmann" rel="me">
Or header link: <link href="https://github.com/bmann" rel="me" />
As said elsewhere, trying to get Instagram posting to your own site is super useful and will walk you through the whole process:
You'll also want to use IndieAuth, so one more custom header:
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
At this point, I got through OWG, authenticated with my Github account (the only one that still seems to work).
I'm getting an error:
HTTP/1.1 100 Continue
HTTP/1.1 400 Bad Request
Server: Cowboy
Connection: keep-alive
Content-Type: text/plain; charset=utf-8
Content-Length: 11
Etag: W/"b-EFiDB1U+dmqzx9Mo2UjcZ1SJPO8"
Date: Fri, 28 Sep 2018 05:51:27 GMT
Via: 1.1 vegur
Bad Request
Now that I had indieauth working correctly, I discovered that https://micropublish.net/ is something else I could sign into with my blog (again, using Github auth).
I can see from Heroku logs that, signed in with IndieAuth to my blog.bmannconsulting.com, it is reading the micropub endpoint and passing it on to the server.
Github is giving an error, which is almost certainly about the wrong path.
Success! https://github.com/bmann/bmcblog/commit/b0c1a44830850498b63eb130ea2fd77f97258a88 (which is private, but trust me!)
OK, so figured it out -- the MICROPUB_SITE_GITHUB_REPO
value needs to be just nameOfYourRepo
-- e.g. if your username is bmann, then not bmann/nameOfYourRepo.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too