summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorGeorge Moschovitis <george.moschovitis@gmail.com>2018-12-13 15:30:21 +0200
committerGitHub <noreply@github.com>2018-12-13 15:30:21 +0200
commit6b05a213029d0097a98e26b6c2aa4ff635f37182 (patch)
tree7099b599cd7a19916f9cbee882e5012b27b2d1f0 /web
parenta1690b4978675c3ca995d1ec1613a84a66d2a8c0 (diff)
Pass cloud_base_url from daemon to web/gui through hello endpoint #4980 (#4982)
* Pass cloud_base_url from daemon to web/gui through hello endpoint #4980 * Make sure the [cloud] section goes into the general part of netdata.conf #4980
Diffstat (limited to 'web')
-rw-r--r--web/gui/dashboard.js2
-rw-r--r--web/gui/src/dashboard.js/registry.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/web/gui/dashboard.js b/web/gui/dashboard.js
index d2f727c6f5..94cdb75e32 100644
--- a/web/gui/dashboard.js
+++ b/web/gui/dashboard.js
@@ -9677,6 +9677,7 @@ NETDATA.alarms = {
NETDATA.registry = {
server: null, // the netdata registry server
+ cloudBaseURL: null, // the netdata cloud base url
person_guid: null, // the unique ID of this browser / user
machine_guid: null, // the unique ID the netdata server that served dashboard.js
hostname: 'unknown', // the hostname of the netdata server that served dashboard.js
@@ -9738,6 +9739,7 @@ NETDATA.registry = {
NETDATA.registry.hello(NETDATA.serverDefault, function (data) {
if (data) {
NETDATA.registry.server = data.registry;
+ NETDATA.registry.cloudBaseURL = data.cloud_base_url;
NETDATA.registry.machine_guid = data.machine_guid;
NETDATA.registry.hostname = data.hostname;
diff --git a/web/gui/src/dashboard.js/registry.js b/web/gui/src/dashboard.js/registry.js
index b9d91291ae..b0e893e0cf 100644
--- a/web/gui/src/dashboard.js/registry.js
+++ b/web/gui/src/dashboard.js/registry.js
@@ -3,6 +3,7 @@
NETDATA.registry = {
server: null, // the netdata registry server
+ cloudBaseURL: null, // the netdata cloud base url
person_guid: null, // the unique ID of this browser / user
machine_guid: null, // the unique ID the netdata server that served dashboard.js
hostname: 'unknown', // the hostname of the netdata server that served dashboard.js
@@ -64,6 +65,7 @@ NETDATA.registry = {
NETDATA.registry.hello(NETDATA.serverDefault, function (data) {
if (data) {
NETDATA.registry.server = data.registry;
+ NETDATA.registry.cloudBaseURL = data.cloud_base_url;
NETDATA.registry.machine_guid = data.machine_guid;
NETDATA.registry.hostname = data.hostname;