From 82b5e5e197c23649c23e1218d458152c8b1358d8 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Thu, 3 Sep 2026 03:10:21 -0500 Subject: [PATCH] docs: remove obsolete server migration documentation Delete MIGRATION_TODO.md and secrets.txt as they reference the deprecated imperative deployment model (secrets.txt, up.sh, standalone dynu scripts). Secrets and environment variables are now managed declaratively via sops-nix and systemd, making these manual transfer instructions obsolete and potentially misleading. --- MIGRATION_TODO.md | 38 --------------------------- secrets.txt | 67 ----------------------------------------------- 2 files changed, 105 deletions(-) delete mode 100644 MIGRATION_TODO.md delete mode 100644 secrets.txt diff --git a/MIGRATION_TODO.md b/MIGRATION_TODO.md deleted file mode 100644 index c9d5dee..0000000 --- a/MIGRATION_TODO.md +++ /dev/null @@ -1,38 +0,0 @@ -# Server Migration Todo List - -## 1. Pre-Migration (Old Server) -- [ ] Fill in all missing values in `secrets.txt`. -- [ ] Verify that `backup.zip` contains all necessary files. -- [ ] Stop all containers: `./down.sh` or `docker-compose down` in each directory. -- [ ] Securely transfer `backup.zip` to the new server (e.g., using `scp`). - -## 2. Environment Setup (New Server) -- [ ] Install Docker and Docker Compose. -- [ ] Create external Docker networks: - - `docker network create proxy-net` - - `docker network create socket-net` -- [ ] Clone the repository to the new server. -- [ ] Unzip `backup.zip` into the project root. - -## 3. Configuration & Data Restoration -- [ ] **Traefik SSL**: Move `acme.json` to `infra/core/letsencrypt/`. -- [ ] **Traefik Permissions**: Run `chmod 600 infra/core/letsencrypt/acme.json`. -- [ ] **Authelia Data**: Move `users.yml` and `db.sqlite3` to `infra/authelia/config/`. -- [ ] **Environment Files**: - - Create `infra/core/.env` from `secrets.txt`. - - Create `infra/authelia/.env` from `secrets.txt`. - - Run `chmod 600 infra/core/.env infra/authelia/.env`. -- [ ] **DDNS**: Restore `scripts/dynu/dynu-environment`. -- [ ] **Homepage**: Restore `homepage/config/*.yaml` files. - -## 4. Deployment -- [ ] Run `./up.sh` to start all services. -- [ ] Check Traefik logs: `docker logs traefik -f`. -- [ ] Verify SSL certificates are loading correctly. -- [ ] Check Authelia logs: `docker logs authelia -f`. -- [ ] Test login via `auth.`. - -## 5. Post-Deployment -- [ ] Update Dynu IP manually if the update script hasn't run yet. -- [ ] Verify all services in the Homepage dashboard. -- [ ] **CRITICAL**: Delete `backup.zip` and `secrets.txt` from the server once verified. diff --git a/secrets.txt b/secrets.txt deleted file mode 100644 index 924dfb6..0000000 --- a/secrets.txt +++ /dev/null @@ -1,67 +0,0 @@ -# HOMESERVER MIGRATION SECRETS MANIFEST -# Use this file to collect and organize your secrets before migrating. -# After moving to the new server, distribute these values into the target files. - -================================================================================ -SECTION 0: CONTEXTUAL INFORMATION (The "11 PM" Reminders) -================================================================================ -Domain: arch-services.mywire.org -Cloud/DNS: Dynu (DNS-01 Challenge) -Dynu User: [Check scripts/dynu/dynu-environment] -Authelia URL: https://auth.arch-services.mywire.org -Traefik URL: https://traefik.arch-services.mywire.org - -================================================================================ -SECTION 1: ENVIRONMENT VARIABLES (.env files) -================================================================================ - -[Target File: infra/core/.env] --------------------------------------------------------------------------------- -DOMAIN= # e.g., yourdomain.com -ACME_EMAIL= # Your email for Let's Encrypt -DYNU_API_KEY= # Your Dynu API Key for DNS challenge -DOCKER_API_VERSION=1.40 # Usually 1.40 for modern Docker - -[Target File: infra/authelia/.env] --------------------------------------------------------------------------------- -AUTHELIA_SESSION_SECRET= # Secure random string -AUTHELIA_STORAGE_ENCRYPTION_KEY= # Secure random string -AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET= # Secure random string - -================================================================================ -SECTION 2: CONFIGURATION & DATABASE FILES (Copy these) -================================================================================ - -[Path: infra/core/letsencrypt/acme.json] -Instruction: Copy the file directly. -CRITICAL: Set permissions to 600 (chmod 600 acme.json) before starting Traefik. - -[Path: infra/authelia/config/users.yml] -Instruction: Contains your hashed passwords. Copy to the same location. - -[Path: infra/authelia/config/db.sqlite3] -Instruction: Contains 2FA/TOTP data. Copy to the same location. - -[Path: scripts/dynu/dynu-environment] -Instruction: Contains Dynu DDNS credentials. Copy to scripts or /etc/conf.d/. - -[Path: homepage/config/*.yaml] -Instruction: Check settings.yaml and proxmox.yaml for API keys (WeatherAPI, Proxmox tokens). - -================================================================================ -SECTION 3: DEPLOYMENT INSTRUCTIONS -================================================================================ - -1. Clone/Transfer the repository to the new server. -2. Place Section 1 values into their respective .env files. -3. Transfer Section 2 files to their exact paths. -4. Set Permissions: - - chmod 600 infra/core/.env - - chmod 600 infra/authelia/.env - - chmod 600 infra/core/letsencrypt/acme.json -5. Verify Networks: - - Ensure external networks 'proxy-net' and 'socket-net' are created: - docker network create proxy-net - docker network create socket-net -6. Rebuild & Start: - - ./up.sh (or docker-compose up -d in each directory)