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

+4 -1
View File
@@ -1,11 +1,14 @@
services:
caddy:
image: caddy:2-alpine
image: {{ caddy_image }}
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
{% if caddy_custom %}
env_file: .env # CROWDSEC_API_KEY
{% endif %}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv