Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add https env support #503

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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