Howto

Getting up and running: Mastodon on Fedora Server

I had a bit of bother getting Mastodon up and running on a Fedora box so figured I’d write up the main sticking points. Preamble The scope is to: Put most of this inside Docker Use AWS S3 for object storage Use AWS SES for mail If you’ve got Postfix already running locally, or don’t want to run storage on S3, just ignore these bits.

fail2ban config for Wordpress running in Docker

This environment: CentOS 7.x WP 5.x PHP 7.x Fail2ban 0.11.x WP/PHP running in Docker In /etc/fail2ban/filter.d/wplogin.conf: [Definition] failregex = .*php7:notice.*\[client (<HOST>).*wp-admin.*Password Mismatch ignoreregex = Then in the WP home, we want to log errors to SYSLOG.

AWS S3 log format for awstats

For S3 logging, awstats needs its LogFormat set up in the following manner: %other %extra1 %time1 %host %logname %other %method %url %methodurl %code %other %extra2 %bytesd %other %extra3 %refererquot %uaquot %other %other %other %other %other %virtualname %other Amazon’s documentation is available here