From 5bc7fd285388184a0993a195a6ee18e13af7e1fc Mon Sep 17 00:00:00 2001 From: phil Date: Thu, 31 Jul 2025 17:46:43 -0400 Subject: [PATCH] use the host val if set for docs server --- slingshot/src/server.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/slingshot/src/server.rs b/slingshot/src/server.rs index 7021576..ae22afd 100644 --- a/slingshot/src/server.rs +++ b/slingshot/src/server.rs @@ -349,7 +349,11 @@ pub async fn serve( "Slingshot", env!("CARGO_PKG_VERSION"), ) - .server("http://localhost:3000") + .server(if let Some(ref h) = host { + format!("https://{h}") + } else { + "http://localhost:3000".to_string() + }) .url_prefix("/xrpc"); let mut app = Route::new() -- 2.51.2