- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
41 lines
1016 B
Bash
Executable File
41 lines
1016 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run this AFTER downloading credentials from Cloudflare Dashboard
|
|
|
|
set -e
|
|
|
|
echo "=== Cloudflare Tunnel Setup ==="
|
|
echo ""
|
|
|
|
# Check for credentials files
|
|
MISSING=0
|
|
for file in credentials-ml110.json credentials-r630-01.json credentials-r630-02.json; do
|
|
if [ ! -f "$file" ]; then
|
|
echo "❌ Missing: $file"
|
|
MISSING=1
|
|
else
|
|
echo "✅ Found: $file"
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
|
|
if [ $MISSING -eq 1 ]; then
|
|
echo "Please download credentials from Cloudflare Dashboard first!"
|
|
echo "See: DOWNLOAD_CREDENTIALS_NOW.md"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Setting up credentials..."
|
|
./scripts/setup-credentials-auto.sh
|
|
|
|
echo ""
|
|
echo "Starting services..."
|
|
ssh root@192.168.11.10 "pct exec 102 -- systemctl start cloudflared-ml110 cloudflared-r630-01 cloudflared-r630-02"
|
|
ssh root@192.168.11.10 "pct exec 102 -- systemctl enable cloudflared-*"
|
|
|
|
echo ""
|
|
echo "✅ Setup complete!"
|
|
echo ""
|
|
echo "Check status:"
|
|
echo " ssh root@192.168.11.10 'pct exec 102 -- systemctl status cloudflared-*'"
|