Sign in

Mod for letsencrypt

F2B Discord Notification

This mod enhances the Letsencrypt container adding better Fail2Ban notifications for discord.

arch
amd64
built

This mod is deprecated

The letsencrypt image was renamed swag; use the swag mods.

Use it#

Set DOCKER_MODS on the letsencrypt container and recreate it. The mod is pulled on every start; several mods are separated with |.

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:letsencrypt-f2bdiscord

:letsencrypt-f2bdiscord always gets the newest build. To stay on this one, pin its tag:

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:letsencrypt-f2bdiscord-61f9f03
services:
  letsencrypt:
    image: ghcr.io/linuxserver-playground/letsencrypt:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:letsencrypt-f2bdiscord

Also for letsencrypt.

Details#

Configuration

Enable

Mod configuration

Environment variables used by this mod:

Discord webhook, it just need the last parts. -e DISC_HOOK=40832456738934/7DcEpWr5V24OIEIELjg-KkHky86SrOgTqA Your discord ID. -e DISC_ME=120970603556503552 Map API Key, get a key from mapquest. -e DISC_API=YourKey

Jail configuration example

[bitwarden]

filter  = bitwarden
enabled = true
logpath = /fail2ban/bw/bitwarden.log
action  = discordEmbed[bantime=24]
          iptables-allports[name=Bitwarden]

Action arguments:

bantime(hour) is optional, but defaults to 24 when not set. Just reflects in the message, does not change the ban time

Example

Example picture

Community project

Improve this mod, or make your own

Mods are how LinuxServer images grow without getting heavier: a Dockerfile, a few scripts and a mod.yml. If this one is missing something, or you need one like it for another image, an AI agent in our harness can build and test it with you.

Ask your agent

  • The letsencrypt-f2bdiscord mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like letsencrypt-f2bdiscord for <another image>, and test it.

Making a mod Every way to help Get the harness (opens in a new tab)

Source: letsencrypt-f2bdiscord branch (opens in a new tab). Every mod