Seed a minimal WASI web chat and move host approvals to port 8090

This commit is contained in:
2026-11-11 11:42:08 +00:00
parent feab7055ad
commit d72e40356c
22 changed files with 611 additions and 45 deletions
+2 -2
View File
@@ -21,9 +21,9 @@ The listener stops when the console returns.
Options on `sausage run`:
- `--api-listen 127.0.0.1:8081`: the default listener address.
- `--api-listen 127.0.0.1:8090`: the default listener address.
- `--api-rp-id localhost`: the default WebAuthn RP ID.
- `--api-origin http://localhost:8081`: the default browser origin.
- `--api-origin http://localhost:8090`: the default browser origin.
The origin must name the host pages, not the world server.
The listener speaks HTTP. A production HTTPS origin needs a reverse proxy to this listener.
+2 -2
View File
@@ -6,13 +6,13 @@ use std::{net::SocketAddr, path::Path, sync::Arc};
#[derive(Clone, Debug, clap::Args)]
pub struct Options {
/// Address of the host's approval, enrollment, and secret-entry listener.
#[arg(long, default_value = "127.0.0.1:8081")]
#[arg(long, default_value = "127.0.0.1:8090")]
pub api_listen: SocketAddr,
/// WebAuthn relying-party ID for the host pages.
#[arg(long, default_value = "localhost")]
pub api_rp_id: String,
/// Browser origin of the host pages, not the world's origin.
#[arg(long, default_value = "http://localhost:8081")]
#[arg(long, default_value = "http://localhost:8090")]
pub api_origin: String,
}