Skip to content

Commit

Permalink
chore: settle pulse api url in the config.json (#129)
Browse files Browse the repository at this point in the history
* Settle pulse api url in the config.json

* Pass only node_id as the
  • Loading branch information
DarumaDocker authored Aug 28, 2024
1 parent 1b1079b commit 6d84da1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"rag_policy": "system-message",
"domain": "us.gaianet.network",
"llamaedge_port": "8080",
"server_health_url": "https://httpbin.org/anything/0x1234567890123456789012345678901234567890.us.gaianet.network",
"server_info_url": "https://httpbin.org/anything/0x1234567890123456789012345678901234567890.us.gaianet.network"
"server_health_url": "https://pulse.gaianet.ai/node-health/$subdomain",
"server_info_url": "https://pulse.gaianet.ai/node-info/$subdomain"
}
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,9 @@ else
echo "$device_id" > "$device_id_file"
fi

# Replace subdomain for the pulse api url
$sed_i_cmd "s/\$subdomain/$subdomain/g" $gaianet_base_dir/config.json

$sed_i_cmd "s/subdomain = \".*\"/subdomain = \"$subdomain\"/g" $gaianet_base_dir/gaianet-domain/frpc.toml
$sed_i_cmd "s/serverAddr = \".*\"/serverAddr = \"$gaianet_domain\"/g" $gaianet_base_dir/gaianet-domain/frpc.toml
$sed_i_cmd "s/name = \".*\"/name = \"$subdomain.$gaianet_domain\"/g" $gaianet_base_dir/gaianet-domain/frpc.toml
Expand Down

0 comments on commit 6d84da1

Please sign in to comment.