kiskaadee cdfb0fddff refactor(dynu): implement strict validation and structured logging
Enhance the IP monitor script to improve reliability and observability
during DDNS updates.

- Add  to filter out RFC1918 and CGNAT address ranges.
- Implement MD5 password hashing to avoid sending cleartext credentials.
- Transition to structured logging for easier filtering via journald.
- Tighten provider validation by classifying DNS/HTTP failures as
  degraded states versus terminal errors.
- Ensure atomicity of state updates by only persisting the last IP
  after a successful API response.
2026-04-26 17:08:18 -05:00

Arch-traefik-hub 🚀

A centralized local services manager using Traefik v3 as a reverse proxy with automated SSL (Let's Encrypt) via Dynu DNS-01 challenges.

🏗️ Architecture

  • Gateway: Traefik (running in core/)
  • Network: proxy-net (shared Docker bridge)
  • Domain: *.arch-services.mywire.org
  • Automation: up.sh script for zero-config deployment

🚦 Project Status

Task Status
NAT Port Forwarding (80/443) ✅ Completed
Folder Scaffolding ✅ Completed
Shared Network Setup ✅ Completed
Custom Python Dashboard 🏗️ In Progress
Dynu API Integration ⏳ Pending (Key found)
Let's Encrypt Validation ⏳ Pending

🚀 Getting Started

1. Configuration

Create a .env file in the root directory (use .env-example as a template):

DYNU_API_KEY=your_key_here
ACME_EMAIL=your_email@example.com
DOMAIN=arch-services.mywire.org

2. Launching the Hub

The up.sh script handles network creation, directory permissions for SSL, and container startup.

chmod +x up.sh
./up.sh

3. Verification

  • Traefik Logs: docker logs -f traefik (Watch for successful SSL challenge)
  • Local Dashboard: http://192.168.1.36:3000 (Once dashboard service is up)
  • Service Logs: https://logs.arch-services.mywire.org (Via Dozzle)

🛠️ Adding New Services

To add a service, create a folder in services/ and ensure the docker-compose.yml uses the proxy-net and includes the Traefik labels:

labels:
  - "traefik.enable=true"
  - "traefik.http.routers.MYSERVICE.rule=Host(`myservice.arch-services.mywire.org`)"
  - "traefik.http.routers.MYSERVICE.entrypoints=websecure"
  - "traefik.http.routers.MYSERVICE.tls.certresolver=myresolver"

📦 Current Service Map

  • Excalidraw: excalidraw.${DOMAIN}
  • Gitea: gitea.${DOMAIN}
  • Ollama: ollama.${DOMAIN} (Load balanced x3)
  • Dozzle: logs.${DOMAIN}
S
Description
Declarative NixOS host foundation, shared platform infrastructure, and appctl operational control plane for a self-hosted homelab.
https://kiskaadee.github.io/homelab-core/ Readme
1.8 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 92.3%
Nix 6.4%
Shell 1.3%