diff --git a/automation/results/bookstack-create-admin_result.txt b/automation/archive/bookstack-create-admin_result.txt similarity index 100% rename from automation/results/bookstack-create-admin_result.txt rename to automation/archive/bookstack-create-admin_result.txt diff --git a/automation/results/bookstack-gitea-sync_result.txt b/automation/archive/bookstack-gitea-sync_result.txt similarity index 100% rename from automation/results/bookstack-gitea-sync_result.txt rename to automation/archive/bookstack-gitea-sync_result.txt diff --git a/automation/results/bookstack-nginx-ssl_result.txt b/automation/archive/bookstack-nginx-ssl_result.txt similarity index 100% rename from automation/results/bookstack-nginx-ssl_result.txt rename to automation/archive/bookstack-nginx-ssl_result.txt diff --git a/automation/results/bookstack-ssl-retry_result.txt b/automation/archive/bookstack-ssl-retry_result.txt similarity index 100% rename from automation/results/bookstack-ssl-retry_result.txt rename to automation/archive/bookstack-ssl-retry_result.txt diff --git a/automation/results/deploy-bookstack_result.txt b/automation/archive/deploy-bookstack_result.txt similarity index 100% rename from automation/results/deploy-bookstack_result.txt rename to automation/archive/deploy-bookstack_result.txt diff --git a/automation/results/deploy-mkdocs_result.txt b/automation/archive/deploy-mkdocs_result.txt similarity index 100% rename from automation/results/deploy-mkdocs_result.txt rename to automation/archive/deploy-mkdocs_result.txt diff --git a/automation/results/deploy-wikijs_result.txt b/automation/archive/deploy-wikijs_result.txt similarity index 100% rename from automation/results/deploy-wikijs_result.txt rename to automation/archive/deploy-wikijs_result.txt diff --git a/automation/results/fix-mkdocs-footer_result.txt b/automation/archive/fix-mkdocs-footer_result.txt similarity index 100% rename from automation/results/fix-mkdocs-footer_result.txt rename to automation/archive/fix-mkdocs-footer_result.txt diff --git a/automation/results/remove-bookstack_result.txt b/automation/archive/remove-bookstack_result.txt similarity index 100% rename from automation/results/remove-bookstack_result.txt rename to automation/archive/remove-bookstack_result.txt diff --git a/automation/results/setup-bookstack-sync_result.txt b/automation/archive/setup-bookstack-sync_result.txt similarity index 100% rename from automation/results/setup-bookstack-sync_result.txt rename to automation/archive/setup-bookstack-sync_result.txt diff --git a/automation/results/test-cc-automation_result.txt b/automation/archive/test-cc-automation_result.txt similarity index 100% rename from automation/results/test-cc-automation_result.txt rename to automation/archive/test-cc-automation_result.txt diff --git a/automation/results/test-final_result.txt b/automation/archive/test-final_result.txt similarity index 100% rename from automation/results/test-final_result.txt rename to automation/archive/test-final_result.txt diff --git a/automation/results/test-gitea-integration_result.txt b/automation/archive/test-gitea-integration_result.txt similarity index 100% rename from automation/results/test-gitea-integration_result.txt rename to automation/archive/test-gitea-integration_result.txt diff --git a/automation/results/test-github-mirror_result.txt b/automation/archive/test-github-mirror_result.txt similarity index 100% rename from automation/results/test-github-mirror_result.txt rename to automation/archive/test-github-mirror_result.txt diff --git a/automation/results/test-mirror-sync_result.txt b/automation/archive/test-mirror-sync_result.txt similarity index 100% rename from automation/results/test-mirror-sync_result.txt rename to automation/archive/test-mirror-sync_result.txt diff --git a/automation/results/test-task-001_result.txt b/automation/archive/test-task-001_result.txt similarity index 100% rename from automation/results/test-task-001_result.txt rename to automation/archive/test-task-001_result.txt diff --git a/automation/results/test-task-002_result.txt b/automation/archive/test-task-002_result.txt similarity index 100% rename from automation/results/test-task-002_result.txt rename to automation/archive/test-task-002_result.txt diff --git a/automation/logs/daemon.log b/automation/logs/daemon.log index 95076eb..cbcf384 100644 --- a/automation/logs/daemon.log +++ b/automation/logs/daemon.log @@ -107,3 +107,10 @@ [2026-02-09 17:19:28] DAEMON: Check Interval: 10s [2026-02-09 17:19:28] DAEMON: ========================================== [2026-02-09 17:19:29] DAEMON: Found 1 task(s) in queue - executing... +[2026-02-09 19:13:19] DAEMON: Found 1 task(s) in queue - executing... +[2026-02-09 19:16:13] DAEMON: Found 1 task(s) in queue - executing... +[2026-02-09 19:24:51] DAEMON: Found 1 task(s) in queue - executing... +[2026-02-09 19:38:54] DAEMON: Found 1 task(s) in queue - executing... +[2026-02-09 19:40:46] DAEMON: Found 1 task(s) in queue - executing... +[2026-02-09 19:51:26] DAEMON: Found 1 task(s) in queue - executing... +[2026-02-09 19:53:59] DAEMON: Found 1 task(s) in queue - executing... diff --git a/automation/logs/executor.log b/automation/logs/executor.log index 754f9a0..d6e8240 100644 --- a/automation/logs/executor.log +++ b/automation/logs/executor.log @@ -449,3 +449,49 @@ [2026-02-09 17:19:29] Committing results to Git... [2026-02-09 17:19:29] WARNING: Git push failed [2026-02-09 17:19:29] Executor run complete +[2026-02-09 19:13:19] Pulling latest from Git... +[2026-02-09 19:13:20] ========================================== +[2026-02-09 19:13:20] Executing task: copy-project-files.sh +[2026-02-09 19:13:20] ========================================== +[2026-02-09 19:13:20] Task copy-project-files.sh completed (exit code: 0) +[2026-02-09 19:13:20] Committing results to Git... +[2026-02-09 19:13:20] Executor run complete +[2026-02-09 19:16:13] Pulling latest from Git... +[2026-02-09 19:16:13] ========================================== +[2026-02-09 19:16:13] Executing task: trigger-github-sync.sh +[2026-02-09 19:16:13] ========================================== +[2026-02-09 19:16:13] Task trigger-github-sync.sh completed (exit code: 0) +[2026-02-09 19:16:13] Committing results to Git... +[2026-02-09 19:16:13] Executor run complete +[2026-02-09 19:24:51] Pulling latest from Git... +[2026-02-09 19:24:51] ========================================== +[2026-02-09 19:24:51] Executing task: test-github-mirror.sh +[2026-02-09 19:24:51] ========================================== +[2026-02-09 19:25:21] Task test-github-mirror.sh completed (exit code: 0) +[2026-02-09 19:25:21] Committing results to Git... +[2026-02-09 19:25:22] Executor run complete +[2026-02-09 19:38:54] Pulling latest from Git... +[2026-02-09 19:38:54] ========================================== +[2026-02-09 19:38:54] Executing task: test-mirror-sync.sh +[2026-02-09 19:38:54] ========================================== +[2026-02-09 19:38:54] Task test-mirror-sync.sh completed (exit code: 0) +[2026-02-09 19:38:54] Committing results to Git... +[2026-02-09 19:38:55] Executor run complete +[2026-02-09 19:40:46] Pulling latest from Git... +[2026-02-09 19:40:46] ========================================== +[2026-02-09 19:40:46] Executing task: verify-github-access.sh +[2026-02-09 19:40:46] ========================================== +[2026-02-09 19:41:47] Task verify-github-access.sh completed (exit code: 0) +[2026-02-09 19:41:47] Committing results to Git... +[2026-02-09 19:41:47] Executor run complete +[2026-02-09 19:51:26] Pulling latest from Git... +[2026-02-09 19:51:26] ========================================== +[2026-02-09 19:51:26] Executing task: audit-and-reorganize-repo.sh +[2026-02-09 19:51:26] ========================================== +[2026-02-09 19:51:26] Task audit-and-reorganize-repo.sh completed (exit code: 0) +[2026-02-09 19:51:26] Committing results to Git... +[2026-02-09 19:51:26] Executor run complete +[2026-02-09 19:53:59] Pulling latest from Git... +[2026-02-09 19:53:59] ========================================== +[2026-02-09 19:53:59] Executing task: organize-repo.sh +[2026-02-09 19:53:59] ========================================== diff --git a/automation/queue/deploy-wikijs.sh b/automation/queue/deploy-wikijs.sh deleted file mode 100644 index 200744c..0000000 --- a/automation/queue/deploy-wikijs.sh +++ /dev/null @@ -1,205 +0,0 @@ -#!/bin/bash -# Firefrost Gaming - Wiki.js "The Codex" Deployment (Services 4a & 4b) -# Deploys: subscribers.firefrostgaming.com/codex + staff.firefrostgaming.com/codex -# Date: February 9, 2026 -# Method: Single Wiki.js instance, dual domains, /codex path, role-based access - -set -e - -echo "=== Wiki.js 'The Codex' Deployment Started ===" -echo "Timestamp: $(date)" - -# Variables -WIKIJS_VERSION="2.5.303" -INSTALL_DIR="/opt/wikijs" -DATA_DIR="/var/lib/wikijs" -SERVICE_USER="wikijs" -IP_ADDRESS="74.63.218.205" -SUBSCRIBER_DOMAIN="subscribers.firefrostgaming.com" -STAFF_DOMAIN="staff.firefrostgaming.com" - -echo "Step 1: Installing Node.js 18..." -curl -fsSL https://deb.nodesource.com/setup_18.x | bash - -apt-get install -y nodejs - -echo "Step 2: Creating system user..." -useradd -r -s /bin/false $SERVICE_USER || echo "User already exists" - -echo "Step 3: Creating directories..." -mkdir -p $INSTALL_DIR $DATA_DIR -cd $INSTALL_DIR - -echo "Step 4: Downloading Wiki.js $WIKIJS_VERSION..." -wget https://github.com/Requarks/wiki/releases/download/v${WIKIJS_VERSION}/wiki-js.tar.gz -tar xzf wiki-js.tar.gz -rm wiki-js.tar.gz - -echo "Step 5: Creating Wiki.js configuration..." -cat > config.yml << 'WIKICFG' -port: 3000 -bindIP: 127.0.0.1 -db: - type: sqlite - storage: /var/lib/wikijs/database.sqlite -logLevel: info -dataPath: /var/lib/wikijs -WIKICFG - -echo "Step 6: Setting permissions..." -chown -R $SERVICE_USER:$SERVICE_USER $INSTALL_DIR $DATA_DIR - -echo "Step 7: Creating systemd service..." -cat > /etc/systemd/system/wikijs.service << 'SYSTEMD' -[Unit] -Description=Wiki.js - The Codex -After=network.target - -[Service] -Type=simple -User=wikijs -ExecStart=/usr/bin/node server -WorkingDirectory=/opt/wikijs -Restart=always -RestartSec=10 - -[Install] -WantedBy=multi-user.target -SYSTEMD - -echo "Step 8: Starting Wiki.js service..." -systemctl daemon-reload -systemctl enable wikijs -systemctl start wikijs - -echo "Step 9: Waiting for Wiki.js to initialize..." -sleep 10 - -echo "Step 10: Creating Nginx config for subscribers.firefrostgaming.com..." -cat > /etc/nginx/sites-available/subscribers.firefrostgaming.com << 'NGINX1' -server { - listen 74.63.218.205:80; - server_name subscribers.firefrostgaming.com; - - location / { - return 301 https://$server_name$request_uri; - } -} - -server { - listen 74.63.218.205:443 ssl http2; - server_name subscribers.firefrostgaming.com; - - # SSL certificates (configured by certbot) - - # Root redirect to /codex - location = / { - return 301 https://$server_name/codex; - } - - # The Codex (Wiki.js) - location /codex/ { - proxy_pass http://127.0.0.1:3000/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 86400; - } -} -NGINX1 - -echo "Step 11: Creating Nginx config for staff.firefrostgaming.com..." -cat > /etc/nginx/sites-available/staff.firefrostgaming.com << 'NGINX2' -server { - listen 74.63.218.205:80; - server_name staff.firefrostgaming.com; - - location / { - return 301 https://$server_name$request_uri; - } -} - -server { - listen 74.63.218.205:443 ssl http2; - server_name staff.firefrostgaming.com; - - # SSL certificates (configured by certbot) - - # Root redirect to /codex - location = / { - return 301 https://$server_name/codex; - } - - # The Codex (Wiki.js) - location /codex/ { - proxy_pass http://127.0.0.1:3000/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_read_timeout 86400; - } -} -NGINX2 - -echo "Step 12: Enabling Nginx sites..." -ln -sf /etc/nginx/sites-available/subscribers.firefrostgaming.com /etc/nginx/sites-enabled/ -ln -sf /etc/nginx/sites-available/staff.firefrostgaming.com /etc/nginx/sites-enabled/ - -echo "Step 13: Testing Nginx configuration..." -nginx -t - -echo "Step 14: Restarting Nginx..." -systemctl restart nginx - -echo "Step 15: Configuring UFW firewall..." -ufw allow in on ens3 to $IP_ADDRESS port 80 proto tcp -ufw allow in on ens3 to $IP_ADDRESS port 443 proto tcp -ufw reload - -echo "Step 16: Installing SSL certificates..." -certbot --nginx -d $SUBSCRIBER_DOMAIN -d $STAFF_DOMAIN --non-interactive --agree-tos --email mkrause612@gmail.com --redirect - -echo "Step 17: Verification checks..." -echo "Wiki.js service status:" -systemctl status wikijs --no-pager - -echo "Port 3000 listening:" -ss -tlnp | grep 3000 - -echo "Nginx configuration:" -nginx -t - -echo "SSL certificates:" -certbot certificates | grep -A2 $SUBSCRIBER_DOMAIN - -echo "=== Wiki.js 'The Codex' Deployment Complete ===" -echo "" -echo "Subscriber Codex: https://$SUBSCRIBER_DOMAIN/codex" -echo "Staff Codex: https://$STAFF_DOMAIN/codex" -echo "Root domains auto-redirect to /codex" -echo "" -echo "FIRST-TIME SETUP:" -echo "1. Browse to either URL above" -echo "2. Complete Wiki.js administrator setup" -echo "3. Email: mkrause612@gmail.com" -echo "4. Password: Butter2018!!" -echo "5. Site URL: https://subscribers.firefrostgaming.com (or staff - doesn't matter for single instance)" -echo "" -echo "POST-SETUP TASKS:" -echo "1. Create 'Subscribers' group with read-only permissions" -echo "2. Create 'Staff' group with edit permissions" -echo "3. Create 'Admin' group with full permissions" -echo "4. Configure different home pages or content permissions per group" -echo "5. Set up authentication (local users Phase 1, webhook automation Phase 2)" -echo "" -echo "Database: SQLite at $DATA_DIR/database.sqlite" -echo "Service: systemctl status wikijs" - -exit 0 diff --git a/automation/queue/organize-repo.sh b/automation/queue/organize-repo.sh new file mode 100755 index 0000000..32651c2 --- /dev/null +++ b/automation/queue/organize-repo.sh @@ -0,0 +1,27 @@ +#!/bin/bash +cd ~/firefrost-work/firefrost-operations-manual + +# Create archive directory +mkdir -p docs/archive/2026-02-09-session + +# Archive session-specific files +mv docs/session-migration-feb9-2026.md docs/archive/2026-02-09-session/ +mv docs/session-journal-feb9-2026.md docs/archive/2026-02-09-session/ +mv tx1-cleanup-feb9-2026.txt docs/archive/2026-02-09-session/ + +# Remove test files +rm -f test-mirror.txt + +# Archive old automation results (keep directory structure) +mkdir -p automation/archive +mv automation/results/*bookstack* automation/archive/ 2>/dev/null +mv automation/results/*mkdocs* automation/archive/ 2>/dev/null +mv automation/results/*wikijs* automation/archive/ 2>/dev/null +mv automation/results/test-* automation/archive/ 2>/dev/null + +# Commit cleanup +git add -A +git commit -m "Repository cleanup: Archive session files, remove test files, organize automation results" +git push + +echo "Repository organized and committed!" diff --git a/automation/results/organize-repo_result.txt b/automation/results/organize-repo_result.txt new file mode 100644 index 0000000..d1fbfb2 --- /dev/null +++ b/automation/results/organize-repo_result.txt @@ -0,0 +1,3 @@ +Task: organize-repo.sh +Started: Mon Feb 9 19:53:59 CST 2026 +========================================== diff --git a/docs/session-journal-feb9-2026.md b/docs/archive/2026-02-09-session/session-journal-feb9-2026.md similarity index 100% rename from docs/session-journal-feb9-2026.md rename to docs/archive/2026-02-09-session/session-journal-feb9-2026.md diff --git a/docs/session-migration-feb9-2026.md b/docs/archive/2026-02-09-session/session-migration-feb9-2026.md similarity index 100% rename from docs/session-migration-feb9-2026.md rename to docs/archive/2026-02-09-session/session-migration-feb9-2026.md diff --git a/tx1-cleanup-feb9-2026.txt b/docs/archive/2026-02-09-session/tx1-cleanup-feb9-2026.txt similarity index 100% rename from tx1-cleanup-feb9-2026.txt rename to docs/archive/2026-02-09-session/tx1-cleanup-feb9-2026.txt diff --git a/test-mirror.txt b/test-mirror.txt deleted file mode 100644 index ce5a3c2..0000000 --- a/test-mirror.txt +++ /dev/null @@ -1 +0,0 @@ -Mirror test at Mon Feb 9 19:38:54 CST 2026