Sign in

Mod for swag

F2B Discord Notification

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

arch
amd64
built

This mod is deprecated

Marked deprecated upstream.

Use it#

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

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

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

DOCKER_MODS=ghcr.io/linuxserver-playground/mods:swag-f2bdiscord-f09c291
services:
  swag:
    image: ghcr.io/linuxserver-playground/swag:latest
    environment:
      - DOCKER_MODS=ghcr.io/linuxserver-playground/mods:swag-f2bdiscord

Details#

Warning

This mod is deprecated

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 swag-f2bdiscord mod <what is wrong>. Fix it, test it and draft the PR.
  • Make a mod like swag-f2bdiscord for <another image>, and test it.

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

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