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:
PhilandClaude Opus 5.5 committed 2026-11-27 12:22:15 -07:00
1 parent 8aad8132b6
commit 48a4e48b84
13 files changed
+261 -1

No files matched your search

+7
View File
@@ -6,6 +6,13 @@
- compose.yml
state: restarted
- name: restart crowdsec
community.docker.docker_compose_v2:
project_src: /opt/stacks/crowdsec
files:
- compose.yml
state: restarted
- name: restart obsidian-livesync
community.docker.docker_compose_v2:
project_src: /opt/stacks/obsidian-livesync