Files
itpp-infrastructure/docs/app2-caddyfile-audit-2026-07-21.md
T
root de72f06109 docs: IRS letter, Caddyfile audit, home lab state (July 21)
- IRS name change letter for IT Pro Partner LLC
- app2 Caddyfile audit: UNMS/Gitea fixes after Technitium deploy
- Home lab state: QNAP NFS, VM migrations, vm-host-02 cleared
- homelab SSH key deployed to all hosts
2026-07-21 19:34:16 -04:00

28 lines
1.1 KiB
Markdown

# app2 Caddyfile Audit — July 21, 2026
## Root cause
Technitium DNS was deployed on app2. During the Caddyfile rewrite to add `dns1.itpropartner.com`, two existing services were dropped:
1. **UNMS**`reverse_proxy localhost:80` failed because UNMS nginx exposes port 443 (via host 8444), not port 80. Fixed by proxying via HTTPS with `tls_insecure_skip_verify`.
2. **Gitea** — entry was completely removed. Fixed by adding `reverse_proxy 127.0.0.1:3001`.
## Prevention
- Always audit `docker ps` output BEFORE rewriting Caddyfile
- Verify every running container that exposes web ports has a Caddy entry
- Test each domain with `curl -sk` after Caddy reload
## Final Caddyfile (validated)
```
{
default_bind 152.53.39.202
auto_https disable_redirects
}
dns1.itpropartner.com:443 → 127.0.0.1:5380
gps.fleettracker360.com:443 → localhost:8082
fleettracker360.com:443 → localhost:8082
unms.forefrontwireless.com:443 → https://localhost:8444 (tls_insecure_skip_verify)
unifi.itpropartner.com:443 → https://localhost:8443 (tls_insecure_skip_verify)
hudu.itpropartner.com:443 → localhost:3000
git.itpropartner.com:443 → 127.0.0.1:3001
```