mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -15,15 +15,11 @@ class ShareCommand extends Command
|
||||
|
||||
public function handle()
|
||||
{
|
||||
// TODO: Hacky workaround just to see if it works haha
|
||||
if ($this->option('auth')) {
|
||||
$GLOBALS['expose.auth'] = $this->option('auth');
|
||||
}
|
||||
|
||||
(new Factory())
|
||||
->setLoop(app(LoopInterface::class))
|
||||
// ->setHost('beyond.sh') // TODO: Read from (local/global) config file
|
||||
// ->setPort(8080) // TODO: Read from (local/global) config file
|
||||
->setAuth($this->option('auth'))
|
||||
->createClient($this->argument('host'), explode(',', $this->option('subdomain')))
|
||||
->createHttpServer()
|
||||
->run();
|
||||
|
||||
Reference in New Issue
Block a user