summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimotej S <6674623+underhood@users.noreply.github.com>2022-11-07 19:40:12 +0100
committerGitHub <noreply@github.com>2022-11-07 19:40:12 +0100
commitefc5932b13d4d28aa610c9a18af70e338b1f9665 (patch)
tree5199352c2586664c373aa4ccf8d5a270bd984ab2
parent61c530254a4cd66e86dc89348d61fabfaa029ec3 (diff)
Fix local dashboard cloud links (#13953)
* fix kickstart message * workaround for agent UI
-rw-r--r--libnetdata/libnetdata.h1
-rwxr-xr-xpackaging/installer/kickstart.sh4
-rw-r--r--registry/registry.c4
3 files changed, 6 insertions, 3 deletions
diff --git a/libnetdata/libnetdata.h b/libnetdata/libnetdata.h
index 9d07a6cb5b..ce2f8682b0 100644
--- a/libnetdata/libnetdata.h
+++ b/libnetdata/libnetdata.h
@@ -458,6 +458,7 @@ extern char *netdata_configured_host_prefix;
// BEWARE: Outside of the C code this also exists in alarm-notify.sh
#define DEFAULT_CLOUD_BASE_URL "https://api.netdata.cloud"
+#define DEFAULT_CLOUD_UI_URL "https://app.netdata.cloud"
#define RRD_STORAGE_TIERS 5
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh
index 6a78d56530..f278c6a4ab 100755
--- a/packaging/installer/kickstart.sh
+++ b/packaging/installer/kickstart.sh
@@ -27,7 +27,7 @@ KICKSTART_SOURCE="$(
)"
PACKAGES_SCRIPT="https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh"
PATH="${PATH}:/usr/local/bin:/usr/local/sbin"
-PUBLIC_CLOUD_URL="https://api.netdata.cloud"
+PUBLIC_CLOUD_URL="https://app.netdata.cloud"
REPOCONFIG_URL_PREFIX="https://packagecloud.io/netdata/netdata-repoconfig/packages"
REPOCONFIG_VERSION="1-2"
START_TIME="$(date +%s)"
@@ -43,7 +43,7 @@ INSTALL_TYPE="unknown"
INSTALL_PREFIX=""
NETDATA_AUTO_UPDATES="default"
NETDATA_CLAIM_ONLY=0
-NETDATA_CLAIM_URL="${PUBLIC_CLOUD_URL}"
+NETDATA_CLAIM_URL="api.netdata.cloud"
NETDATA_COMMAND="default"
NETDATA_DISABLE_CLOUD=0
NETDATA_ONLY_BUILD=0
diff --git a/registry/registry.c b/registry/registry.c
index bc196b5cfa..d596113700 100644
--- a/registry/registry.c
+++ b/registry/registry.c
@@ -164,10 +164,12 @@ void registry_update_cloud_base_url()
int registry_request_hello_json(RRDHOST *host, struct web_client *w) {
registry_json_header(host, w, "hello", REGISTRY_STATUS_OK);
+ const char *cloud_ui_url = appconfig_get(&cloud_config, CONFIG_SECTION_GLOBAL, "cloud ui url", DEFAULT_CLOUD_UI_URL);
+
buffer_sprintf(w->response.data,
",\n\t\"registry\": \"%s\",\n\t\"cloud_base_url\": \"%s\",\n\t\"anonymous_statistics\": %s",
registry.registry_to_announce,
- registry.cloud_base_url, netdata_anonymous_statistics_enabled?"true":"false");
+ cloud_ui_url, netdata_anonymous_statistics_enabled?"true":"false");
registry_json_footer(w);
return 200;