# Download Credentials - Quick Steps ## ⚡ Quick Steps (5 minutes) ### 1. Download Credentials from Cloudflare Dashboard Go to: **https://one.dash.cloudflare.com/** Navigate: **Zero Trust** → **Networks** → **Tunnels** For each of these 3 tunnels, download the credentials file: | Tunnel Name | Tunnel ID | Save As | |------------|-----------|---------| | `tunnel-ml110` | `ccd7150a-9881-4b8c-a105-9b4ead6e69a2` | `credentials-ml110.json` | | `tunnel-r630-01` | `4481af8f-b24c-4cd3-bdd5-f562f4c97df4` | `credentials-r630-01.json` | | `tunnel-r630-02` | `0876f12b-64d7-4927-9ab3-94cb6cf48af9` | `credentials-r630-02.json` | **For each tunnel:** 1. Click on the tunnel name 2. Click **"Configure"** tab 3. Scroll to **"Local Management"** section 4. Click **"Download credentials file"** 5. Save the file with the name from the table above ### 2. Save Files to Project Directory Save all 3 files to: ``` /home/intlc/projects/proxmox/scripts/cloudflare-tunnels/ ``` So you should have: - `/home/intlc/projects/proxmox/scripts/cloudflare-tunnels/credentials-ml110.json` - `/home/intlc/projects/proxmox/scripts/cloudflare-tunnels/credentials-r630-01.json` - `/home/intlc/projects/proxmox/scripts/cloudflare-tunnels/credentials-r630-02.json` ### 3. Run Automated Setup Once files are saved, run: ```bash cd /home/intlc/projects/proxmox/scripts/cloudflare-tunnels ./scripts/setup-credentials-auto.sh ``` This will: - ✅ Validate credentials files - ✅ Copy to VMID 102 - ✅ Update config files - ✅ Set proper permissions - ✅ Prepare everything for service startup ### 4. Start Services ```bash 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 $VMID -- systemctl enable cloudflared-*" ``` ### 5. Verify ```bash ssh root@192.168.11.10 "pct exec 102 -- systemctl status cloudflared-*" ``` --- ## 📋 What the Credentials File Looks Like Each file should contain JSON like this: ```json { "AccountTag": "52ad57a71671c5fc009edf0744658196", "TunnelSecret": "base64-encoded-secret-here", "TunnelID": "ccd7150a-9881-4b8c-a105-9b4ead6e69a2", "TunnelName": "tunnel-ml110" } ``` --- ## 🚀 One-Command Setup (After Downloading) Once you've downloaded all 3 files to the project directory: ```bash cd /home/intlc/projects/proxmox/scripts/cloudflare-tunnels && \ ./scripts/setup-credentials-auto.sh && \ ssh root@192.168.11.10 "pct exec 102 -- systemctl start cloudflared-* && systemctl enable cloudflared-*" ``` --- **Note:** Cloudflare requires manual download of credentials for security reasons. This cannot be automated via API.