Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
HDVinnie committed Nov 29, 2019
2 parents e6b213a + 8fdecb6 commit 72d9a8b
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 19 deletions.
6 changes: 2 additions & 4 deletions src/Configs/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use App\Installer\Database\MySqlSetup;

return [
'min_php_version' => '7.1.3',
'min_php_version' => '7.4',

'repository' => 'https://github.com/HDInnovations/UNIT3D-Community-Edition.git',

Expand Down Expand Up @@ -54,7 +54,5 @@
/* API Keys */
'tmdb-key' => '',
'omdb-key' => '',

'fanart-key' => '',
'tvdb-key' => '',
'igdb-key' => '',
];
1 change: 1 addition & 0 deletions src/Installer/Nginx/NginxSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function handle()
"ufw allow 'Nginx Full'",
"ufw delete allow 'Nginx HTTP'",
"ufw allow $echo_port",
"ufw enable",
"systemctl restart nginx"
]);

Expand Down
16 changes: 13 additions & 3 deletions src/Installer/Server/ServerSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ protected function apiKeys()

$key = $this->question('OMDB Key', '');
$this->config->app('omdb-key', $key);

$this->io->writeln('<fg=magenta>Obtaining an IGDB Key</>:');
$this->io->listing([
'Visit <fg=cyan>https://api.igdb.com</>',
'Create Free Account',
'Generate a API Key',
]);

$key = $this->question('IGDB Key', '');
$this->config->app('igdb-key', $key);
}

protected function mail()
Expand All @@ -137,10 +147,10 @@ protected function mail()
$this->io->writeln('(Used for things like invites, registration, ect.)');
$this->seperator();

$this->io->writeln('<fg=blue>/* You will need a provider like torguard. */</>');
$this->io->writeln('<fg=cyan>https://torguard.net/anonymous-email.php</>');
$this->io->writeln('<fg=blue>/* You will need a provider like sendrid. */</>');
$this->io->writeln('<fg=cyan>https://sendgrid.com/pricing/</>');

$this->io->writeln('Ref: <fg=cyan>https://laravel.com/docs/5.6/mail#introduction</>');
$this->io->writeln('Ref: <fg=cyan>https://laravel.com/docs/6.x/mail#introduction</>');

$value = $this->io->choice('Mail Driver', [
"smtp",
Expand Down
1 change: 1 addition & 0 deletions src/Installer/UNIT3D/Unit3dSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ protected function env()
'{{OWNERPASSWORD}}' => $this->config->app('password'),
'{{TMDBAPIKEY}}' => $this->config->app('tmdb-key'),
'{{OMDBAPIKEY}}' => $this->config->app('omdb-key'),
'{{IGDBAPIKEY}}' => $this->config->app('igdb-key'),
'{{MAILDRIVER}}' => $this->config->app('mail_driver'),
'{{MAILHOST}}' => $this->config->app('mail_host'),
'{{MAILPORT}}' => $this->config->app('mail_port'),
Expand Down
1 change: 1 addition & 0 deletions src/Resources/.env.stub
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ DEFAULT_OWNER_PASSWORD={{OWNERPASSWORD}}

TMDB_API_KEY={{TMDBAPIKEY}}
OMDB_API_KEY={{OMDBAPIKEY}}
IGDB_TOKEN={{IGDBAPIKEY}}
21 changes: 14 additions & 7 deletions src/Resources/intro.stub
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<fg=cyan>
_ _ _ _ _____ _______ ____ _____
| | | | | \ | | |_ _| |__ __| |___ \ | __ \
| | | | | \| | | | | | __) | | | | |
| | | | | . ` | | | | | |__ < | | | |
| |__| | | |\ | _| |_ | | ___) | | |__| |
\____/ |_| \_| |_____| |_| |____/ |_____/ </>
██╗ ██╗███╗ ██╗██╗████████╗██████╗ ██████╗
██║ ██║████╗ ██║██║╚══██╔══╝╚════██╗██╔══██╗
██║ ██║██╔██╗ ██║██║ ██║ █████╔╝██║ ██║
██║ ██║██║╚██╗██║██║ ██║ ╚═══██╗██║ ██║
╚██████╔╝██║ ╚████║██║ ██║ ██████╔╝██████╔╝
╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝

<fg=magenta>INSTALLER v1.0-beta</>
██████╗ ██████╗ ███╗ ███╗███╗ ███╗██╗ ██╗███╗ ██╗██╗████████╗██╗ ██╗ ███████╗██████╗ ██╗████████╗██╗ ██████╗ ███╗ ██╗
██╔════╝██╔═══██╗████╗ ████║████╗ ████║██║ ██║████╗ ██║██║╚══██╔══╝╚██╗ ██╔╝ ██╔════╝██╔══██╗██║╚══██╔══╝██║██╔═══██╗████╗ ██║
██║ ██║ ██║██╔████╔██║██╔████╔██║██║ ██║██╔██╗ ██║██║ ██║ ╚████╔╝ █████╗ ██║ ██║██║ ██║ ██║██║ ██║██╔██╗ ██║
██║ ██║ ██║██║╚██╔╝██║██║╚██╔╝██║██║ ██║██║╚██╗██║██║ ██║ ╚██╔╝ ██╔══╝ ██║ ██║██║ ██║ ██║██║ ██║██║╚██╗██║
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ╚═╝ ██║╚██████╔╝██║ ╚████║██║ ██║ ██║ ███████╗██████╔╝██║ ██║ ██║╚██████╔╝██║ ╚████║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝

</>

*-----------------------------------------------*
| |
Expand Down
4 changes: 0 additions & 4 deletions src/Resources/ubuntu/nginx/default.site
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ server {
location /index.php {
return 301 {{FQDN}};
}

if ($host = www.{{FQDN}}) {
return 301 {{FQDN}}$request_uri;
}

location ~* ^.*(\.(?:git|svn|htaccess|github))$ {
return 403;
Expand Down
2 changes: 1 addition & 1 deletion ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ add_pkgs() {
# PHP
echo -e "\n$Cyan Installing PHP ... $Color_Off"

apt-get install -qq curl debconf-utils php-pear php7.3-curl php7.3-dev php7.3-gd php7.3-mbstring php7.3-zip php7.3-mysql php7.3-xml php7.3-fpm php7.3-intl php7.3-bcmath > /dev/null
apt-get install -qq curl debconf-utils php-pear php7.4-curl php7.4-dev php7.4-gd php7.4-mbstring php7.4-zip php7.4-mysql php7.4-xml php7.4-fpm php7.4-intl php7.4-bcmath > /dev/null
check $? "Installing PHP Failed!"

echo -e "$IGreen OK $Color_Off"
Expand Down

0 comments on commit 72d9a8b

Please sign in to comment.