From 70c094daff6027ab133e6238219b8eb164d061a0 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Tue, 7 Nov 2023 19:22:58 +0100 Subject: [PATCH] Make hub address configurable --- src/Cms/System.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Cms/System.php b/src/Cms/System.php index 5b8d8de050..14446fe512 100644 --- a/src/Cms/System.php +++ b/src/Cms/System.php @@ -484,8 +484,11 @@ public function register(string $license = null, string $email = null): bool throw new InvalidArgumentException(['key' => 'license.email']); } + // get the hub address + $hub = option('hub', 'https://hub.getkirby.com'); + // @codeCoverageIgnoreStart - $response = Remote::get('http://hub.getkirby.test/register', [ + $response = Remote::get($hub . '/register', [ 'data' => [ 'license' => $license, 'email' => Str::lower(trim($email)),