How to Send "User Is Logging Into App" Alerts from authentik to Discord

authentik can post to Discord out of the box, but the default embed only names the user and the event type. I wanted a short message that says who signed into which app: alex is logging into Grafana Tested on authentik 2026.8. Why the default doesn’t work The plain login event happens at the authentik level, before any app is involved, so it has no app name. The authorize_application event fires when a user is authorized for a specific app. That’s the one to match on. The transport mode called “Slack Webhook (Discord compatible)” uses a fixed embed and ignores property mappings entirely. Step 1: Create a Discord webhook In Discord: Channel Settings → Integrations → Webhooks → New Webhook, then copy the URL. It should look like this: ...

How to Protect Traefik Services with CrowdSec

If you expose self-hosted apps to the internet through Traefik, you will see scanners and brute-force attempts within hours. CrowdSec reads Traefik’s access log, spots attack patterns, and tells a Traefik plugin to return 403 to the offenders. This guide walks through the full setup with Docker Compose. How it fits together Internet → Traefik (https entrypoint) → crowdsec@file middleware → app │ │ │ writes JSON access log │ asks "is this IP banned?" ▼ ▼ ./traefik/logs ──────────► CrowdSec container (reads log, detects, decides) Traefik writes a JSON access log. The CrowdSec engine reads that log, matches attack scenarios, and creates ban decisions. It also pulls the community blocklist. The bouncer is a Traefik plugin, not a separate container. It asks CrowdSec’s local API whether an IP is banned and returns 403 if so. CrowdSec ignores private ranges (10.x, 172.16-31.x, 192.168.x) by default, so LAN traffic can’t get banned. ...

How to Upgrade (and Set Up) authentik on Docker Compose Without Breaking Outposts

authentik upgrades are usually painless, until an LDAP or proxy outpost keeps running the old image and your NAS logins or forward-auth apps start acting strange. This is the routine I use for a Docker Compose install behind Traefik, plus a from-scratch setup at the end. Gotchas to know first sudo cmd > file fails in root-owned directories, because the redirect runs as your user. Write backups to ~/ (or pipe to sudo tee). Keep backups outside the stack directory. Outposts on the Local Docker connection don’t reliably redeploy after a server upgrade. docker stop then docker start does nothing useful: the container comes back on the same old image. It has to be removed so authentik recreates it. The compose file is now compose.yml (it was docker-compose.yml before 2026.2). Diff before overwriting so you don’t lose custom Traefik labels. AUTHENTIK_POSTGRESQL__CONN_OPTIONS is deprecated; remove it from .env. 2026.8 rewrote the proxy outpost, so re-test any forward-auth apps after major upgrades. Upgrading Move one release family at a time. Patch bumps are routine; read the release notes before major bumps. ...

How to Run Phantom on a GL.iNet Router So Remote Minecraft Bedrock Servers Show Up as LAN Games

Minecraft Bedrock on consoles makes it awkward to join custom servers, but every client will happily join a game listed under LAN Games. Phantom is a small proxy that makes a remote Bedrock server appear on your local network. Running it on your router means it’s always on and starts on boot, with no PC left running. GL.iNet routers run OpenWrt underneath, so this works on most OpenWrt devices too. Step 1: Get a shell on the router Open the router’s admin panel, go to Applications → Plugins, and install nano (optional, but easier than vi). SSH in. The password is the same as the admin panel password: ssh root@<router-ip> Step 2: Put the Phantom binary on the router Check the router’s CPU architecture: uname -m Download the matching build from the Phantom releases page and copy it to /root/phantom (for example with scp). Make it executable: chmod +x /root/phantom Step 3: Create a procd service OpenWrt manages services with procd, which is different from the SysV init.d scripts on Debian or Ubuntu. Create /etc/init.d/phantom with this content, replacing mc.example.com with your server’s address: ...

How to Send Notifications Anywhere with Apprise (Email, Discord, Matrix, Home Assistant)

Apprise sends a notification to almost any service using a single URL format. It’s great for cron jobs, backup scripts, and anything else that should tell you when it finishes or fails. Install pip install apprise # or: brew install apprise The basic shape apprise -vv -t "Title" -b "Body" "<service-url>" -v adds verbosity; stack them (-vv, -vvv) when debugging. Send to several services at once Just list more URLs: apprise -vv --body="Backup finished" \ "mailto://user:password@example.com" \ "slack://token_a/token_b/token_c" \ "kodi://media-box.local" Service examples Gmail Gmail needs an app password (Google Account → Security → App passwords), not your normal password. Turn on 2-step verification first. ...

How to Fix "All Predefined Address Pools Have Been Fully Subnetted" in Docker

You run docker compose up on a new stack and get this: failed to create network file-browser_default: Error response from daemon: all predefined address pools have been fully subnetted Every Compose project gets its own bridge network, and Docker’s default pools (172.17-31.0.0/16 plus some 192.168.x.x blocks) only stretch so far. Once you have a few dozen stacks, you run out. I hit this on an ASUSTOR NAS running Docker CE from App Central, which has some quirks: no systemd, a BusyBox shell, and sudo needed for every Docker command. The fix works on any Linux host; only the restart step differs. ...