Skip to content

Commit

Permalink
Merge pull request #503 from dcSpark/nico/bump_0_8_12c
Browse files Browse the repository at this point in the history
add https env support
  • Loading branch information
nicarq authored Oct 18, 2024
2 parents 38ec8d7 + 2162d02 commit 0bec9ff
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub struct ShinkaiNodeOptions {
pub node_api_ip: Option<String>,
pub node_api_port: Option<String>,
pub node_ws_port: Option<String>,
pub node_https_port: Option<String>,
pub node_ip: Option<String>,
pub node_port: Option<String>,
pub global_identity_name: Option<String>,
Expand Down Expand Up @@ -103,6 +104,12 @@ impl ShinkaiNodeOptions {
.or(base_options.node_port)
.unwrap_or_default(),
),
node_https_port: Some(
options
.node_https_port
.or(base_options.node_https_port)
.unwrap_or_default(),
),
global_identity_name: Some(
options
.global_identity_name
Expand Down Expand Up @@ -229,6 +236,7 @@ impl Default for ShinkaiNodeOptions {
node_ws_port: Some("9551".to_string()),
node_ip: Some("127.0.0.1".to_string()),
node_port: Some("9552".to_string()),
node_https_port: Some("9553".to_string()),
global_identity_name: None,
node_storage_path: Some("./".to_string()),
unstructured_server_url: Some("https://public.shinkai.com/x-un".to_string()),
Expand Down

0 comments on commit 0bec9ff

Please sign in to comment.