Commit Graph
6 Commits
Author SHA1 Message Date
PhilandClaude Opus 5.5 48a4e48b84 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>
2026-11-27 12:22:15 -07:00
PhilandClaude Opus 5.5 2351740aa7 Tinyauth: Pocket ID login in front of Baikal admin and Changedetection UI
Caddy (sso) snippet does forward_auth to Tinyauth for a given matcher;
Tinyauth sends people to Pocket ID and requires tinyauth_admin_group.
Baikal: only /admin. Changedetection: everything except /api/.
New subdomain auth.thesatelliteoflove.com (dropped from removed_records).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:04:34 -07:00
PhilandClaude Opus 5.5 e569a56417 Reserve fixed IPs on the lava network so Caddy can always start
lava was created by hand without an ip_range, so any container could be
given Caddy's fixed IP (172.20.0.5). After a reboot the containers race
for the low addresses and Caddy often fails with "Address already in use".

- The docker role now creates lava as 172.20.0.0/16 with dynamic
  addresses limited to 172.20.128.0/17, so 172.20.0.x is free for fixed
  IPs, and warns if the network still has the old layout.
- Gitea gets fixed IP 172.20.0.6 once the network has the reserved range,
  since its ufw-docker SSH rule points at its IP.
- ufw-docker allow rules for Caddy (80, 443) and Gitea SSH are managed by
  the playbook and follow IP changes.
- migrate-lava-network.yml recreates the existing network once: it takes
  down every compose project on lava (volumes kept), recreates the
  network, and brings them back up, Caddy first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:04:22 -06:00
PhilandClaude Opus 5.5 c0145dd5a2 Harden permissions, close exposed ports, and clean up tasks
- Quote file modes. Unquoted 644/755 were read as decimal, so files
  landed as 1204. Templates holding secrets are now 0640 root:docker.
- Stop publishing Authentik 9000/9443 and Karakeep 3000 (Caddy reaches
  them over the docker network), bind dir2opds to the Tailscale IP, and
  drop Caddy's unused 8448.
- Atuin login uses no_log and only runs once; the installer only runs
  when Atuin is missing.
- Make chsh, ufw-docker install, the bat symlink and Atuin dotfiles
  idempotent.
- Back up the Paperless data volume (SQLite DB), stopping Paperless
  during the backup.
- Close public sign-up on kosync and ByteStash.
- Replace hardcoded IPs and domains with variables.
- Remove teardown tasks and templates for 9 retired services.
- Fix the dockcheck comment: it auto-updates labelled containers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 21:03:54 -06:00
philandClaude 8710ffc70d feat: update documentation and infrastructure configuration
- Update service count from 22+ to 25 across documentation
- Add vault.yml to gitignore for security
- Add notifications configuration for AppriseAPI integration
- Add jq package to common role dependencies
- Add hairpin networking fix for AppriseAPI chat subdomain access
- Remove diun service references from monitoring category
- Update project completion status in todo.md

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 21:10:30 -06:00
philandClaude 12582b352c feat: implement comprehensive variable management system
- Create standardized group_vars directory structure
- Add domains.yml with centralized subdomain mappings
- Add infrastructure.yml with network, SMTP, and path config
- Reorganize vault.yml secrets by service with consistent naming
- Update 15+ Docker compose templates to use new variable structure
- Simplify playbook commands by removing --extra-vars requirement
- Replace hardcoded domains/IPs with template variables
- Standardize secret references across all services

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-06 15:14:47 -06:00