This document describes:
- Building a custom Caddy container image with the GeoIP plugin (so Caddy can enrich access logs with country code/name). - Configuring Caddy JSON access logs to include GeoIP fields. - Setting up Fail2Ban to parse Caddy logs and send Pushover notifications with GeoIP info via
mmdblookup. - Optional βSOC dashboardβ style fields (severity, jail type, ban time, until).
Read More βDownload files
curl -O https://test.example.com/madplan.json
curl -O -L http://test.example.com/madplan.json # Follows links. In this example the http request will be redirected to https
curl -o test.json https://test.example.com/test.json # Saves the file as test.json
Usefull when the server is hosting multiple domains
curl -H "host: test.example.com" http://172.16.0.150
Read More βHow I built my own nginx cluster
Read More βMake your vim colourful when editing nginx configuration files
Read More βThis is how I have setup automatic certificate renewal on my linux Webserver. I’m using Cloudflare as a DNS provider and are using their API Tokens to verify ownership of my domain, when requesting a certificate from Let’s Encrypt
Read More βInsert this code into your Nginx server {} block
Read More βInsert this code into your Nginx server {} block
Read More β