Installing Pixelfed with Docker Compose

Just my quick notes on installing Pixelfed using Docker Compose, long term I’d like to write this up into a proper guide. Important things to note - Pixelfed as of the moment doesn’t have an official Docker image, normally you’d pull it from Github and build it yourself. However since version 0.11.5 I’ve started using an existing image maintained by Murazaki. Web proxy Assuming you’re running Nginx on the web host you’ll need to setup a proxy by adding something like this to your ....

Sunday, 23 April 2023 · 3 min · Paul Smith

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

Mastodon username without a subdomain

This week I’ve been experimenting with getting a Mastodon instance up and running and the best way of doing this. One of the things I’ve wanted to do which very few instances seem to implement, is running the Mastodon instance on subdomain.domain.tld yet using name @ domain.tld for the usernames, that’s got to be possible right? Yes it is! If you edit the Mastodon env.production file and use the following:...

Saturday, 12 November 2022 · 2 min · Paul Smith