Seed a minimal WASI web chat and move host approvals to port 8090
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user