Deploying Hugo site from Github

Just some quick notes on this - as everytime I setup a new server I forget some steps! Stick the Hugo executable somewhere on the server. Use the following PHP deploy script from here, published below in case it ever goes offline. /** * Automated deploy from GitHub * * https://developer.github.com/webhooks/ * Template from ServerPilot (https://serverpilot.io/community/articles/how-to-automatically-deploy-a-git-repo-from-bitbucket.html) * Hash validation from Craig Blanchette (http://isometriks.com/verify-github-webhooks-with-php) */ // Variables $secret = getenv('GH_DEPLOY_SECRET'); # Paul note: Best to set environment variable - avoid setting here....

Saturday, 14 January 2023 · 3 min · Paul Smith

Mastodon behind an Apache reverse proxy

I’ve noticed a lot of new Mastodon server admins struggling to get Mastodon, either inside or outside of Docker, to properly work behind an Apache reverse proxy. A lot of them seem to be running into “ERR_TOO_MANY_REDIRECTS” or “403 Forbidden”. As the recommended configuation is behind Nginx there isn’t much documentation for getting this working with Apache. Although I run my main private instance through Nginx, I do run an a very small public instance behind Apache....

Sunday, 20 November 2022 · 1 min · Paul Smith