So after installing plerd, I soon realised that the Webmention stuff wasnt working and not that it was a feature I sought after or even knew what it was before deciding to use plerd to render my homepage I decided to make it work because it wasn’t and for no other reason.

The few snags I ran into was with the plerdall not delivering webmentions to myself. After hopping into the debuger I got this clue: (Here I make it sound like i solved this in five minutes but that is not 100% true)

DB<6> r
scalar context return from LWP::UserAgent::get: '_content' => 'LWP will support https URLs if the LWP::Protocol::https module is installed.

Aha! Web::Mention uses Http::Request which wants LWP::UserAgent::get for SSL and to do that requires libssl-dev and zlib1g-dev (for I run Ubuntu) to build its dependency Net::SSLeay. No problem.

The thing is, you see, that I decided to put the webmentions reciever behind a nginx reverse proxy, so that it could terminate the SSL. The config block looks like this:

location /webmention {
    proxy_redirect     off;
    if ($reqest_method = POST ) {
        rewrite /webmention/?(.*) /$1  break;
        proxy_pass http://127.0.0.1:4000;
    }
}

The rewrite is there to map the URI in such a way so the Mojolicious web server can recognize the incoming request.

Now I will enter into the next phase of my master plan which basically is all about applying random filters to pictures I upload to my OneDrive account, and then publishing them or something, here on this blog. I don’t know about the specifics yet, but I’d say I’m off to a pretty good start wuth the subtle yellow background and the classic medieval English Towne font for the headlines.


Next post: A Test Image

Previous post: Another day in paradise