Files
second-brain/projects/homelab/plans/domain-migration-roadtotech.md
T
kiskaadee a1152d4075 docs(brain): add document metadata frontmatter
Add YAML frontmatter to all 54 retained markdown documents.
Frontmatter schema is type-specific — no universal status field.

Type contracts applied:
- knowledge: type + status (draft|stable) + topics
- project:   type + status (planned|active|paused|completed)
- plan:      type + status + project context
- guide:     type + project context (no lifecycle status)
- journal:   type + date (no status — journals are historical by definition)
- practice:  type + status (completed|active) + topics
- inbox:     type + created date

54 documents tagged across:
  knowledge/concepts/     (3)
  knowledge/technologies/ (7, including python/ subdirectory with 4)
  knowledge/methods/      (6)
  projects/homelab/       (1 overview + 6 plans + 6 guides)
  projects/magnetflix/    (1)
  projects/nekoweb/       (1)
  records/journal/        (7)
  practice/LeetCode/      (14)
  inbox/                  (1)
2026-09-05 21:49:17 -05:00

43 lines
2.0 KiB
Markdown

---
type: plan
status: active
project: homelab
---
# 🌐 Domain Migration Plan: `arch-services.mywire.org` ➔ `roadtotech.me`
## 🎯 Objective
Migrate all homelab public endpoints, Authelia single sign-on (SSO), Traefik reverse proxy routers, and SSL certificates from Dynu's free subdomain (`arch-services.mywire.org`) to the custom registered domain (`roadtotech.me`).
---
## 🛠️ DNS & Provider Strategies
### Option A: Dynu Custom Domain (Zero Traefik Changes)
1. In Hostinger registrar, set Custom Nameservers: `ns1.dynu.com` ... `ns6.dynu.com`.
2. In Dynu Control Panel, add `roadtotech.me` under DDNS services.
3. Keep Traefik ACME resolver as `provider=dynu` with existing `DYNU_API_KEY`.
4. Update NixOS environment declarations to `DOMAIN = "roadtotech.me"`.
### Option B: Cloudflare DNS (Homelab Industry Standard)
1. In Hostinger registrar, set Cloudflare Nameservers.
2. In Cloudflare, create an `A` record or dynamic DNS updater with API token.
3. Switch Traefik ACME resolver to `provider=cloudflare` with `CF_DNS_API_TOKEN`.
---
## 📋 Implementation Checklist
- [x] **Step 1: DNS Setup & Propagation Verification**
- Hostinger nameservers delegated to Dynu (`ns1.dynu.com` - `ns6.dynu.com`).
- Wildcard dynamic DNS configured for `*.roadtotech.me` and apex `roadtotech.me`.
- [x] **Step 2: Declarative NixOS Configuration Updated**
- `hosts/desktop/homeserver.nix`: Configured `DOMAIN = "roadtotech.me"`.
- `hosts/desktop/traefik-deployments.nix`: Configured `DOMAIN_SUFFIX = "roadtotech.me"` and `DOCS_PROJECT_PATH = "/home/kiskaadee/Brain"`.
- Secrets rendered to `/run/secrets/rendered/homeserver.env` and `/run/secrets/rendered/traefik-deployments.env`.
- [x] **Step 3: Traefik & Wildcard SSL Validation**
- Let's Encrypt DNS-01 wildcard challenge successfully issued certificate for `roadtotech.me` and `*.roadtotech.me`.
- Validated SNI TLS handshake across all subdomains.
- [x] **Step 4: Authelia & Cookie Verification**
- ForwardAuth configured and tested for `auth.roadtotech.me`.