summaryrefslogtreecommitdiffstats
path: root/registry
diff options
context:
space:
mode:
authorAndrew Moss <1043609+amoss@users.noreply.github.com>2020-03-31 13:07:24 +0200
committerGitHub <noreply@github.com>2020-03-31 13:07:24 +0200
commitfe722cb2a48c074eb7e2739c5052a28d4aa97d56 (patch)
tree3e302830f3343346fcf2a7a0a979bab9ded34754 /registry
parentcf948d42c22093db5d5085b3b453f7bcc2d52ae3 (diff)
Improve the behavior of claiming (#8516)
The default cloud url has been updated to app.netdata.cloud ready for the release. The claiming process now checks the current user executing claiming and refuses to perform the claim for the wrong user. If the current UID is 0 then claiming proceeds but the file ownership is adjusted to be the correct netdata user. The default expected user is `netdata` unless the script can identify the user from the current configuration. After the claiming script is executed the CLI is used to reload the claiming state.
Diffstat (limited to 'registry')
-rw-r--r--registry/registry_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/registry/registry_init.c b/registry/registry_init.c
index e5e6668204..077fe845d1 100644
--- a/registry/registry_init.c
+++ b/registry/registry_init.c
@@ -41,7 +41,7 @@ int registry_init(void) {
registry.verify_cookies_redirects = config_get_boolean(CONFIG_SECTION_REGISTRY, "verify browser cookies support", 1);
// netdata.cloud configuration, if cloud_base_url == "", cloud functionality is disabled.
- registry.cloud_base_url = config_get(CONFIG_SECTION_CLOUD, "cloud base url", "https://netdata.cloud");
+ registry.cloud_base_url = config_get(CONFIG_SECTION_CLOUD, "cloud base url", DEFAULT_CLOUD_BASE_URL);
setenv("NETDATA_REGISTRY_CLOUD_BASE_URL", registry.cloud_base_url, 1);
setenv("NETDATA_REGISTRY_HOSTNAME", registry.hostname, 1);