docs: add migration secrets manifest and deployment checklist

This commit is contained in:
kiskaadee committed 2026-06-16 17:50:28 -05:00
1 parent ef72e3ea0f
commit 868a0190be
3 files changed
+106

No files matched your search

+1
View File
@@ -25,3 +25,4 @@ homepage/config/logs/
Thumbs.db
.vscode/
.idea/
backup.zip
+38
View File
@@ -0,0 +1,38 @@
# 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.<your-domain>`.
## 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.
+67
View File
@@ -0,0 +1,67 @@
# 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)