This repository has been archived on 2026-07-09. You can view files and clone it, but cannot push or open issues or pull requests.
agent-knowledge-base-archived/dialog-summaries/2026-06-06-home-cluster-ssl-pxe-forgejo-backup.md
post e44e5db4a8 rule+docs: strict per-step commit rule, updated home cluster docs, session summary
- AGENTS.md: added STRICT RULE section — commit after every chat step
- locations/home-cluster-192-168-170.md: full rewrite (4min.pro domain, all SSL done, Forgejo backup, infra org)
- dialog-summaries/2026-06-06-home-cluster-ssl-pxe-forgejo-backup.md: session summary

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 01:24:16 +03:00

4.2 KiB

Dialog Summary: Home Cluster — SSL, PXE, Forgejo Migration, NAS Backup

Date: 2026-06-06 / 2026-06-07 Machine: airM1 (Mac, 192.168.170.x) + Proxmox/Docker/TrueNAS via SSH Agent: Claude Code (claude-sonnet-4-6)


What Was Done

1. SSL — All 9 Domains ✅

All Let's Encrypt certs issued for 4min.pro zone. www.4min.pro and monitor.4min.pro required HTTP challenge (DNS challenge failed due to SOA min TTL 10800s NXDOMAIN negative cache). Used /tmp/npm_http_ssl.py on Docker host.

2. PXE Boot (netboot.xyz) ✅

Problem: PXE clients got no response. Three root causes fixed:

  1. Keenetic DHCP pool _WEBADMIN had no option 66/67 → added option 66 ascii 192.168.170.30 and option 67 ascii netboot.xyz.kpxe
  2. Docker bridge NAT breaks TFTP — TFTP opens ephemeral UDP port for data, Docker-proxy has no rule for it → fixed with network_mode: host in netboot.xyz compose
  3. nginx inside container tried port 80 (occupied by NPM) → set NGINX_PORT=8083 and listen 8083 in nginx config

See problems/ for detailed write-up.

3. Forgejo Git Server ✅

  • CT100 (192.168.170.41), Forgejo v10.0.3
  • SSL: https://git.4min.pro
  • Disk expanded: 20GB → 256GB
  • Org structure: garage (project repos) + infra (knowledge base and shared)
  • All repos migrated or created (KaMaz, kamaz5360, joystick, ProjectionMapping, StereoWallND, agent-knowledge-base)
  • agent-knowledge-base moved to infra org

Key bug found: Creating repos via Forgejo API without auto_init: true creates DB record but no .git dir on disk → SSH push fails with "Internal Server Error". Fix: delete + recreate with auto_init: true.

macOS git + Forgejo HTTPS: System git (Xcode/LibreSSL) cannot authenticate to Forgejo HTTPS. Use SSH: git@192.168.170.41:org/repo.git. Mac SSH key added to Forgejo (Key ID: 1).

4. Forgejo → GitHub Push Mirror ✅

  • GitHub PAT added to Forgejo push mirror config
  • Mirror triggers on every commit + every 8 hours
  • All agents write to Forgejo only. GitHub is read-only backup.

5. Forgejo → NAS Daily Backup ✅

  • Script: /usr/local/bin/forgejo-backup.sh on Proxmox host (192.168.170.40)
  • NFS mount: 192.168.170.22:/mnt/datapool/backup → /mnt/nas-backup (Proxmox fstab)
  • Systemd timer: daily at 3:00 AM
  • SQLite .backup command — no Forgejo downtime during backup
  • Backup size: ~2.3GB. Retention: 30 days.
  • Location on NAS: /mnt/datapool/backup/forgejo/daily/YYYY-MM-DD_HH-MM/forgejo-backup.tar.gz

6. Keenetic Management Scripts ✅

  • keenetic-pull.py — Telnet, downloads config with timestamp
  • keenetic-push.py — Telnet, applies commands or config file
  • Location: /Users/post/VScode/network/
  • HTTP API auth does NOT work from Python (SameSite=Strict cookie + challenge-response MD5 fails). Use Telnet only.

Key Decisions

  • Forgejo primary, GitHub backup — always push to git.4min.pro, never directly to GitHub
  • Knowledge base in infra org — git.4min.pro/infra/agent-knowledge-base (not tied to any project)
  • netboot.xyz must use network_mode: host — bridge NAT breaks TFTP
  • Keenetic: Telnet only — HTTP API auth broken from Python

Current State After Session

Component State
SSL all 9 domains ✅
PXE netboot.xyz ✅ Working (BIOS: netboot.xyz.kpxe)
Forgejo git.4min.pro ✅ Running, 256GB disk
Forgejo → GitHub mirror ✅ Auto on commit + 8h
Forgejo → NAS backup ✅ Daily 3AM, 30d retention
Keenetic pull/push scripts ✅
AI Server (192.168.170.10) ❌ Not started
Authentik SSO ❌ Not started
kamaz5360 pushed to Forgejo ✅ (done from another machine)
StereoWallND pushed to Forgejo ❌ Pending (192.168.1.66)

Files Updated This Session

  • locations/home-cluster-192-168-170.md — full rewrite with current state
  • AGENTS.md — added STRICT RULE: commit after every chat step
  • projects/garage/decisions.md — Forgejo migration, infra org, primary/backup rule

Next Actions

  1. Configure AI Server (192.168.170.10) — Ollama, ComfyUI, AllTalk TTS, LiteLLM
  2. Connect Open WebUI to real Ollama on AI Server
  3. Push StereoWallND from 192.168.1.66
  4. Configure Authentik SSO