Basic support for installation process

This commit is contained in:
Dane Everitt 2020-01-18 15:26:15 -08:00
parent f609271c35
commit 3b11ba9fca
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 76 additions and 11 deletions

View file

@ -67,7 +67,7 @@ class WebsocketController extends ClientApiController
'connect',
'send-command',
'send-power',
], $request->user()->root_admin ? ['receive-errors'] : []))
], $request->user()->root_admin ? ['receive-errors', 'receive-install'] : []))
->getToken($signer, new Key($server->node->daemonSecret));
$socket = str_replace(['https://', 'http://'], ['wss://', 'ws://'], $server->node->getConnectionAddress());