Migrate all docker-compose service configurations from legacy GitLab instance to homelab repository for consolidation and version control. Services migrated (6): - bytestash: Code snippet management - filebrowser: Web-based file browser - gitlab: QoL scripts for NPM cert sync - paperless-ngx: Document management with OCR - portainer: Docker management UI - speedtest-tracker: Internet speed test tracker Changes: - Add services/ directory with complete configurations - Update .gitignore with Docker Compose exclusions - Create comprehensive services/README.md documentation - Document migration process in CLAUDE_STATUS.md Migration details: - Source: https://vulcan.apophisnetworking.net/jramos/homelab.git - Files migrated: 10 files (6 compose + 3 utilities + 1 README) - Total size: 84 KB - Lines added: 836 Security notes: - .env files excluded from git - Hardcoded secrets identified in documentation - Review and update secrets before deployment Related: GitLab VM 101 decommissioning preparation 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
460 B
Bash
15 lines
460 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
NPM_HOST="192.168.2.101"
|
|
NPM_USER="root"
|
|
REMOTE_DIR="/etc/letsencrypt/live/npm-7"
|
|
LOCAL_DIR="/etc/gitlab/ssl"
|
|
rsync -az -e ssh $NPM_USER@$NPM_HOST:$REMOTE_DIR/fullchain.pem /tmp/fullchain.pem
|
|
rsync -az -e ssh $NPM_USER@$NPM_HOST:$REMOTE_DIR/privkey.pem /tmp/privkey.pem
|
|
|
|
[[ -s /tmp/fullchain.pem && -s /tmp/privkey.pem ]] || {
|
|
echo "Missing or empty cert files"; exit 1;
|
|
}
|
|
|
|
sudo mv /tmp/fullchain.pem /tmp/privkey.pem $LOCAL_DIR/
|