From 8231da86a43c6da763324d2baf59be1722c323b5 Mon Sep 17 00:00:00 2001 From: Proof of Prints Date: Sun, 31 May 2026 18:35:32 -0500 Subject: [PATCH] chore(rebrand): point endpoints at cloud-api.overbuildlabs.com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of the proofofprints.com → overbuildlabs.com migration. Three endpoint references in the desktop: CLOUD_API_URL (REST) → cloud-api.overbuildlabs.com WS_URL_BASE (WebSocket) → cloud-api.overbuildlabs.com/api/v1/ws MobileMinerDetail placeholder → pool.overbuildlabs.com:5558 Both API hostnames still resolve to the same Node service on VPS 10 via Caddy aliases, so v1.3.0 installs with the old URL baked in keep working — this PR canonicalizes new builds going forward. Out of scope for this PR (deferred until the formation plan's GitHub org rename lands, then handled in a single sweep): - README.md domain + repo URLs - docs/CLOUD_ARCHITECTURE.md - Settings.tsx GitHub link - tauri.conf.json updater endpoint URL Explicitly NOT changing in this PR: - tauri.conf.json bundle identifier (com.proofofprints.popmanager) — baked into every install's %APPDATA% path, code-signing identity, and keychain entries. Migrating requires app-data migration code. --- src-tauri/src/cloud/client.rs | 16 +++++++++++----- src-tauri/src/cloud/ws.rs | 8 +++++--- src/pages/MobileMinerDetail.tsx | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src-tauri/src/cloud/client.rs b/src-tauri/src/cloud/client.rs index 9728e8e..5f5c612 100644 --- a/src-tauri/src/cloud/client.rs +++ b/src-tauri/src/cloud/client.rs @@ -1,11 +1,17 @@ use reqwest::Client; use serde::{Deserialize, Serialize}; -// The cloud API runs at cloud-api.proofofprints.com. The bare `cloud.` -// subdomain now hosts the web portal (Cloudflare static assets) and will -// return 405 Method Not Allowed for any POST that hits it. Don't put the -// portal URL here — it's a different host with no API routes. -const CLOUD_API_URL: &str = "https://cloud-api.proofofprints.com"; +// The cloud API runs at cloud-api.overbuildlabs.com. The portal lives on +// the bare `cloud.` subdomain (Cloudflare static assets) and will return +// 405 Method Not Allowed for any POST that hits it. Don't put the portal +// URL here — it's a different host with no API routes. +// +// Rebrand 2026-05-22: canonical host moved from cloud-api.proofofprints.com +// → cloud-api.overbuildlabs.com. The old hostname is still served by the +// same Caddy site block (both names point at the same Node service) so +// existing installs on previous builds keep working — but new builds +// canonicalize on the OverBuild Labs domain. +const CLOUD_API_URL: &str = "https://cloud-api.overbuildlabs.com"; fn api_url(path: &str) -> String { format!("{}{}", CLOUD_API_URL, path) diff --git a/src-tauri/src/cloud/ws.rs b/src-tauri/src/cloud/ws.rs index b03c7da..a4ba456 100644 --- a/src-tauri/src/cloud/ws.rs +++ b/src-tauri/src/cloud/ws.rs @@ -5,9 +5,11 @@ use tokio_tungstenite::tungstenite::Message; use super::{command_exec, CloudState, CloudSyncStatus}; -// See note in cloud/client.rs — the API host is cloud-api.proofofprints.com, -// NOT cloud.proofofprints.com (which serves the React portal). -const WS_URL_BASE: &str = "wss://cloud-api.proofofprints.com/api/v1/ws"; +// See note in cloud/client.rs — the API host is cloud-api.overbuildlabs.com, +// NOT cloud.overbuildlabs.com (which serves the React portal). Old +// cloud-api.proofofprints.com still resolves to the same backend via +// Caddy aliases until the proofofprints.com domain is fully retired. +const WS_URL_BASE: &str = "wss://cloud-api.overbuildlabs.com/api/v1/ws"; const PING_INTERVAL_SECS: u64 = 30; /// Backoff schedule: 5s → 10s → 30s → 60s (cap) diff --git a/src/pages/MobileMinerDetail.tsx b/src/pages/MobileMinerDetail.tsx index 87e722c..52f41c7 100644 --- a/src/pages/MobileMinerDetail.tsx +++ b/src/pages/MobileMinerDetail.tsx @@ -224,7 +224,7 @@ export default function MobileMinerDetail() { value={poolUrl} onChange={(e) => setPoolUrl(e.target.value)} className="w-full bg-dark-900 border border-slate-600 rounded-lg px-3 py-2 text-white text-sm" - placeholder="stratum+tcp://pool.proofofprints.com:5558" + placeholder="stratum+tcp://pool.overbuildlabs.com:5558" />