update process_lib serve_ui

This commit is contained in:
dr-frmr 2024-08-05 19:46:52 +03:00
parent 779018b84d
commit be92a76226
No known key found for this signature in database
4 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@ -3313,7 +3313,7 @@ dependencies = [
[[package]] [[package]]
name = "kinode_process_lib" name = "kinode_process_lib"
version = "0.9.0" version = "0.9.0"
source = "git+https://github.com/kinode-dao/process_lib?branch=develop#ddc4c11f5e2cfd6461d6d8f44d154146f3dbc087" source = "git+https://github.com/kinode-dao/process_lib?branch=develop#6edbf78bbdbd1ba6a755f1888ba78b9144ed4ff8"
dependencies = [ dependencies = [
"alloy", "alloy",
"alloy-primitives", "alloy-primitives",

View File

@ -102,7 +102,7 @@ fn initialize(our: Address) {
// Serve the index.html and other UI files found in pkg/ui at the root path. // Serve the index.html and other UI files found in pkg/ui at the root path.
// authenticated=true, local_only=false // authenticated=true, local_only=false
http_server http_server
.serve_ui(&our, "ui", http_config.clone()) .serve_ui(&our, "ui", vec!["/"], http_config.clone())
.expect("failed to serve ui"); .expect("failed to serve ui");
// Allow HTTP requests to be made to /games; they will be handled dynamically. // Allow HTTP requests to be made to /games; they will be handled dynamically.

View File

@ -44,7 +44,7 @@ fn init(our: Address) {
let http_config = server::HttpBindingConfig::default(); let http_config = server::HttpBindingConfig::default();
http_server http_server
.serve_ui(&our, "ui", http_config.clone()) .serve_ui(&our, "ui", vec!["/"], http_config.clone())
.expect("failed to serve ui"); .expect("failed to serve ui");
http_server http_server

View File

@ -189,6 +189,7 @@ fn initialize(our: Address) {
.serve_ui( .serve_ui(
&state.our, &state.our,
"ui", "ui",
vec!["/"],
http::server::HttpBindingConfig::default().secure_subdomain(true), http::server::HttpBindingConfig::default().secure_subdomain(true),
) )
.unwrap(); .unwrap();