From 4149337c1d944afcf4550bede3d4b88589426022 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sun, 15 Mar 2026 04:28:18 +0000 Subject: [PATCH] fix: correct IndeedHub port mapping from 8190 to 7777 Backend metadata and manifest now match the actual running config and the frontend port mapping. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/indeedhub/manifest.yml | 4 ++-- core/archipelago/src/container/docker_packages.rs | 4 ++-- loop/plan.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/indeedhub/manifest.yml b/apps/indeedhub/manifest.yml index c22cdf44..8929efe0 100644 --- a/apps/indeedhub/manifest.yml +++ b/apps/indeedhub/manifest.yml @@ -27,7 +27,7 @@ app: apparmor_profile: default ports: - - host: 8190 + - host: 7777 container: 3000 protocol: tcp # Web UI (Next.js) @@ -57,7 +57,7 @@ app: name: Web UI description: Stream Bitcoin documentaries with Nostr identity type: ui - port: 8190 + port: 7777 protocol: http path: / diff --git a/core/archipelago/src/container/docker_packages.rs b/core/archipelago/src/container/docker_packages.rs index 431e774d..12194c72 100644 --- a/core/archipelago/src/container/docker_packages.rs +++ b/core/archipelago/src/container/docker_packages.rs @@ -137,8 +137,8 @@ impl DockerPackageScanner { debug!("Using DWN server: http://localhost:3100"); Some("http://localhost:3100".to_string()) } else if app_id == "indeedhub" { - debug!("Using Indeehub: http://localhost:8190"); - Some("http://localhost:8190".to_string()) + debug!("Using IndeedHub: http://localhost:7777"); + Some("http://localhost:7777".to_string()) } else if app_id == "mempool-electrs" || app_id == "electrs" { // Electrs UI runs on host at port 50002 debug!("Using electrs-ui for mempool-electrs: http://localhost:50002"); diff --git a/loop/plan.md b/loop/plan.md index 286f5799..23708030 100644 --- a/loop/plan.md +++ b/loop/plan.md @@ -42,9 +42,9 @@ ## Phase 4: IndeedHub + Nostr Signer Integration -- [ ] **Verify IndeedHub container is running and accessible**: SSH to 192.168.1.228. Check: `sudo podman ps | grep indeedhub`. If not running, check if the image exists: `sudo podman images | grep indeedhub`. If no image, pull from manifest: the image is `git.tx1138.com/lfg2025/indeedhub:latest` (from `apps/indeedhub/manifest.yml`). Pull and start: `sudo podman pull git.tx1138.com/lfg2025/indeedhub:latest && sudo podman run -d --name indeedhub --restart unless-stopped -p 7777:3000 --cap-drop ALL --cap-add CHOWN --cap-add SETUID --cap-add SETGID --security-opt no-new-privileges --user 1001 git.tx1138.com/lfg2025/indeedhub:latest`. Verify it responds: `curl -sI http://localhost:7777/`. Check nginx proxy works: `curl -sI http://localhost/app/indeedhub/`. +- [x] **Verify IndeedHub container is running and accessible**: SSH to 192.168.1.228. Check: `sudo podman ps | grep indeedhub`. If not running, check if the image exists: `sudo podman images | grep indeedhub`. If no image, pull from manifest: the image is `git.tx1138.com/lfg2025/indeedhub:latest` (from `apps/indeedhub/manifest.yml`). Pull and start: `sudo podman pull git.tx1138.com/lfg2025/indeedhub:latest && sudo podman run -d --name indeedhub --restart unless-stopped -p 7777:3000 --cap-drop ALL --cap-add CHOWN --cap-add SETUID --cap-add SETGID --security-opt no-new-privileges --user 1001 git.tx1138.com/lfg2025/indeedhub:latest`. Verify it responds: `curl -sI http://localhost:7777/`. Check nginx proxy works: `curl -sI http://localhost/app/indeedhub/`. -- [ ] **Fix IndeedHub port mapping inconsistency**: In `core/archipelago/src/container/docker_packages.rs`, line ~139-141 hardcodes `http://localhost:8190` for IndeedHub. But nginx and the frontend use port 7777. Update `docker_packages.rs` to use port 7777: change `Some("http://localhost:8190".to_string())` to `Some("http://localhost:7777".to_string())`. Also verify `apps/indeedhub/manifest.yml` — if it says port 8190, update to 7777 to match the actual deployment. In `neode-ui/src/stores/appLauncher.ts` line 67, confirm `'7777': '/app/indeedhub/'` is correct. Deploy with `./scripts/deploy-to-target.sh --live` and test. +- [x] **Fix IndeedHub port mapping inconsistency**: In `core/archipelago/src/container/docker_packages.rs`, line ~139-141 hardcodes `http://localhost:8190` for IndeedHub. But nginx and the frontend use port 7777. Update `docker_packages.rs` to use port 7777: change `Some("http://localhost:8190".to_string())` to `Some("http://localhost:7777".to_string())`. Also verify `apps/indeedhub/manifest.yml` — if it says port 8190, update to 7777 to match the actual deployment. In `neode-ui/src/stores/appLauncher.ts` line 67, confirm `'7777': '/app/indeedhub/'` is correct. Deploy with `./scripts/deploy-to-target.sh --live` and test. - [ ] **Verify nostr-provider.js injection works for IndeedHub iframe**: The NIP-07 Nostr signer works by nginx injecting `neode-ui/public/nostr-provider.js` into the iframe via `sub_filter`. Check the IndeedHub nginx location block in `image-recipe/configs/nginx-archipelago.conf` (lines 334-367) includes a `sub_filter` that injects `` into the HTML response. If missing, add: `sub_filter '' '';` with `sub_filter_once on;` and `sub_filter_types text/html;`. Sync nginx config to server and reload. Verify by loading IndeedHub in the Archy iframe and checking browser dev tools console for `window.nostr` availability — run `JSON.stringify(Object.keys(window.nostr))` in the iframe console, should show `["getPublicKey","signEvent","getRelays","nip04","nip44"]`.