From e4ee5da96c233447e3735cfbc9108488c87c5250 Mon Sep 17 00:00:00 2001 From: Shyim Date: Sun, 29 Apr 2018 12:49:11 +0200 Subject: [PATCH] Fixed setup command --- src/Command/SetupCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/SetupCommand.php b/src/Command/SetupCommand.php index b75f5ca..5dcecc5 100644 --- a/src/Command/SetupCommand.php +++ b/src/Command/SetupCommand.php @@ -48,7 +48,7 @@ class SetupCommand extends Command $appHost = $io->ask('Please specify a http url where recast will be available', 'http://app.recast.in'); $nginxFolder = $io->ask('Please specify the nginx folder where nginx rtmp is installed', '/opt/nginx-rtmp/conf/'); $nginxReloadCommand = $io->ask('Please specify the command that should be executed to reload nginx rtmp', 'systemctl reload nginx-rtmp'); - $registerEnabled = $io->ask('Should the registration enabled? (true / false)', 'true'); + $registerEnabled = $io->ask('Should the registration enabled? (true / false)', 'false'); if (parse_url($appHost, PHP_URL_SCHEME) !== 'http') { throw new \RuntimeException('URL must be http due nginx-rtmp limitations'); @@ -58,7 +58,7 @@ class SetupCommand extends Command $envs['APP_HOST'] = $appHost; $envs['APP_ENV'] = 'prod'; $envs['APP_SECRET'] = $this->generateRandomString(); - $envs['REGISTRATION_ENABLED'] = $registerEnabled; + $envs['APP_REGISTRATION_ENABLED'] = $registerEnabled; $envs['MAILER_URL'] = 'null://localhost'; $envs['JWT_PRIVATE_KEY_PATH'] = 'config/jwt/private.pem'; $envs['JWT_PUBLIC_KEY_PATH'] = 'config/jwt/public.pem';