summaryrefslogtreecommitdiffstats
path: root/registry
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 /registry
parent61c530254a4cd66e86dc89348d61fabfaa029ec3 (diff)
Fix local dashboard cloud links (#13953)
* fix kickstart message * workaround for agent UI
Diffstat (limited to 'registry')
-rw-r--r--registry/registry.c4
1 files changed, 3 insertions, 1 deletions
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;