CrowdSec (detection only) and staged custom-Caddy plumbing
- crowdsec stack on lava reading Caddy's access log (logs/ subpath only), collections caddy, http-cve, base-http-scenarios, appsec-virtual-patching; AppSec listener on :7422; allowlist for lava, Tailscale, the server - caddy_custom switch (image + plugin directives), staged by caddy_crowdsec_enforce / caddy_appsec / caddy_ratelimit; all off, so the rendered config is unchanged in effect - (protect) on every site, (ratelimit_login) on login paths, both empty until enabled; caddy recreated when compose.yml or .env changes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8aad8132b6
commit
48a4e48b84
13 files changed
+261
-1
No files matched your search
@@ -132,6 +132,17 @@ user (`vault_aws_dns`). It also deletes the records listed under
|
||||
- `ufw-docker` makes UFW govern container ports. Only Caddy (80/443) and
|
||||
Gitea SSH (host port 222) are allowed in from the internet.
|
||||
- Admin UIs (Dockge, Syncthing, Cronmaster, Apprise, CouchDB) bind to the Tailscale IP only.
|
||||
- Caddy writes a JSON access log to `/data/logs/access.log` (volume
|
||||
`caddy_caddy_data`). CrowdSec (infrastructure, tag `crowdsec`) reads it.
|
||||
- Custom Caddy: `caddy_custom` in `infrastructure.yml` switches between stock
|
||||
`caddy:2-alpine` and the image from repo `phil/caddy-custom` (CrowdSec
|
||||
bouncer, AppSec, rate limiting; rebuilt daily, rolled out by dockcheck).
|
||||
`caddy_crowdsec_enforce`, `caddy_appsec` and `caddy_ratelimit` stage the
|
||||
features; `caddy_custom: false` rolls all of it back in one deploy.
|
||||
- Unban an IP: `docker exec crowdsec cscli decisions delete --ip <ip>` (SSH
|
||||
over Tailscale never goes through Caddy).
|
||||
- Tinyauth (`auth.`) puts a Pocket ID login (group `admins`) in front of
|
||||
Baikal's `/admin` and the Changedetection UI via the `(sso)` snippet.
|
||||
|
||||
### SSO (Pocket ID)
|
||||
Pocket ID (`id.thesatelliteoflove.com`) replaced Authentik on 2026-10-31.
|
||||
|
||||
Reference in new issue
Block a user