# Homelab Infrastructure Configuration

Private Gitea-repo met **alle configs per applicatie** voor Synology NAS (`192.168.1.211`) en Proxmox VM 102 (`192.168.1.180`).

- **Architectuur-diagrammen:** [ARCHITECTURE.md](ARCHITECTURE.md) (Proxmox, NAS, security stack, LAN)
- **IP-lijst:** [HOMELAB_IPS.md](HOMELAB_IPS.md)

**Snel herstellen:** [RESTORE.md](RESTORE.md)  
**Volledige inventaris:** [INVENTORY.md](INVENTORY.md)  
**App-overzicht:** [apps/README.md](apps/README.md)

## Structuur

```
apps/                    # Één map per applicatie
  postgres/
    docker-compose.yml
    .env
  adguard/
    docker-compose.yml
    config/AdGuardHome.yaml
  proxmox/
    hosts/
      pve/               # 192.168.1.216
      dell-proxmox/      # 192.168.1.56
  sonarr/ radarr/ ...    # config/ per app
infrastructure/
  nginx/                 # Reverse proxy
scripts/
  sync-from-nas.sh
.env                     # Globale secrets (private repo)
```

## Repos op Gitea

| Repo | Inhoud |
|------|--------|
| [homelab-configs](http://192.168.1.211:3000/mo/homelab-configs) | Dit repo — alle app configs |
| [ha-voice-control-mcp](http://192.168.1.211:3000/mo/ha-voice-control-mcp) | HA voice MCP server |
| [mek-tech-consulting](http://192.168.1.211:3000/mo/mek-tech-consulting) | Mek-Tech Consultancy Framework (poort 3000, 3001, 3002, 3003) |
| [mek-tech-showcase](http://192.168.1.211:3000/mo/mek-tech-showcase) | Mek-Tech Live Labs open data dashboards (poort 3010) |
| [homelab-command](http://192.168.1.211:3000/mo/homelab-command) | Homelab Command — security dashboard, mesh, NATS, syslog (.180:8765) |
| [home-security-agent](http://192.168.1.211:3000/mo/home-security-agent) | Home Security Agent — monitoring agent op VM 102 |

## Workflow

```bash
# 1. Sync live configs van NAS
sh scripts/sync-from-nas.sh

# 2. Commit
cd /volume1/docker/homelab-configs
git add -A && git commit -m "sync configs" && git push

# 3. Service starten
cd apps/postgres && docker compose up -d
```

## Proxmox backup

```bash
# /etc/pve van beide nodes
scp -r root@192.168.1.216:/etc/pve/* apps/proxmox/hosts/pve/
scp -r root@192.168.1.56:/etc/pve/* apps/proxmox/hosts/dell-proxmox/

# App-configs uit draaiende LXC's (Docker, .env, systemd)
python3 scripts/pull-lxc-from-proxmox.py
```
