Your Micropub endpoint should never be returning HTTP 301, I'm guessing there is something wrong with the nginx config. Maybe you have an http-to-https redirect? Maybe the proxy_pass
config is wrong?
If the micropub endpoint on your website linked from your GitHub profile is the one in question, it looks like the problem is with the slash. Your website links to /micropub
, but the nginx config is for /micropub/
, and nginx is sending a redirect from https://shbgm.ca/micropub
to https://shbgm.ca/micropub/
. If you instead include https://shbgm.ca/micropub/
as your micropub endpoint on your website, Quill should be able to post to it just fine.
In general, it's not a good idea for a POST request to follow 301 redirects, which is why browsers have implemented that by making a GET request to the new location. The Micropub spec itself doesn't say anything about this, but I don't think any Micropub clients will follow a 301 redirect on the micropub endpoint itself. You're better off linking to the actual Micropub endpoint from your site in the first place.