getNode(); $structure = [ 'web' => [ 'listen' => $node->daemonListen, 'ssl' => [ 'enabled' => (! $node->behind_proxy && $node->scheme === 'https'), ], ], 'sftp' => [ 'path' => $node->daemonBase, 'port' => $node->daemonSFTP, ], 'remote' => [ 'base' => config('app.url'), ], 'uploads' => [ 'size_limit' => $node->upload_size, ], 'keys' => [ $node->daemonSecret, ], ]; return $this->getHttpClient()->request('PATCH', 'config', [ 'json' => array_merge($structure, $overrides), ]); } }