kiskaadee 306db58c32 refactor(dynu): enhance resilience and systemd hardening
- Implement multi-provider HTTP fallback loop in ip-monitor.sh
- Add strict systemd sandboxing (ProtectSystem, PrivateTmp, NoNewPrivileges)
- Improve error observability by capturing stderr in discovery attempts
- Add atomic file sync and invariant checks for systemd execution
- Update documentation to reflect hardened protocol and state management
2026-04-25 15:02:22 -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%