Add hero_books_http.sock and /admin/rpc for WASM island proxy access #75

Closed
opened 2026-03-02 20:39:11 +00:00 by mik-tf · 0 comments
Owner

Context

The Books island in hero_archipelagos was using an iframe pointing to http://localhost:8883, which only works on a developer machine. To enable the native Dioxus WASM UI to work behind hero_proxy in production, hero_books needs to:

  1. Bind a second Unix socket hero_books_http.sock — hero_proxy routes /hero_books/ here (matches _http suffix; _server sockets are explicitly ignored by the proxy)
  2. Expose /admin/rpc so the SettingsView can save AI provider keys (Groq, OpenRouter, SambaNova, embedder URL)

Goals

  • start_rpc_only_server binds hero_books_http.sock in addition to hero_books_server.sock
  • Admin router nested at /admin exposes /admin/rpc for settings management
  • src/admin/ module added (logger, rpc, server, settings) to fix the broken pub mod admin reference
  • Both sockets serve the same app (RPC + admin routes)
## Context The Books island in hero_archipelagos was using an iframe pointing to `http://localhost:8883`, which only works on a developer machine. To enable the native Dioxus WASM UI to work behind hero_proxy in production, hero_books needs to: 1. Bind a second Unix socket `hero_books_http.sock` — hero_proxy routes `/hero_books/` here (matches `_http` suffix; `_server` sockets are explicitly ignored by the proxy) 2. Expose `/admin/rpc` so the SettingsView can save AI provider keys (Groq, OpenRouter, SambaNova, embedder URL) ## Goals - `start_rpc_only_server` binds `hero_books_http.sock` in addition to `hero_books_server.sock` - Admin router nested at `/admin` exposes `/admin/rpc` for settings management - `src/admin/` module added (logger, rpc, server, settings) to fix the broken `pub mod admin` reference - Both sockets serve the same app (RPC + admin routes)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#75
No description provided.