diff --git a/frontend/public/json/koel.json b/frontend/public/json/koel.json index 5803da914..7a9d2ec11 100644 --- a/frontend/public/json/koel.json +++ b/frontend/public/json/koel.json @@ -28,14 +28,10 @@ } ], "default_credentials": { - "username": null, - "password": null + "username": "admin@koel.dev", + "password": "KoelIsCool" }, "notes": [ - { - "text": "First visit will prompt you to create an admin account", - "type": "info" - }, { "text": "Media files should be placed in /opt/koel_media", "type": "info" diff --git a/install/koel-install.sh b/install/koel-install.sh index d458844fc..c334f9fe8 100644 --- a/install/koel-install.sh +++ b/install/koel-install.sh @@ -37,13 +37,13 @@ fetch_and_deploy_gh_release "koel" "koel/koel" "prebuild" "latest" "/opt/koel" " msg_info "Configuring Koel" mkdir -p /opt/koel_media /opt/koel_sync cd /opt/koel -APP_KEY=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32) + cat </opt/koel/.env APP_NAME=Koel APP_ENV=production APP_DEBUG=false APP_URL=http://${LOCAL_IP} -APP_KEY=base64:${APP_KEY} +APP_KEY= TRUSTED_HOSTS= @@ -118,6 +118,7 @@ msg_info "Installing Koel (Patience)" export COMPOSER_ALLOW_SUPERUSER=1 cd /opt/koel $STD composer install --no-interaction --no-dev --optimize-autoloader +$STD php artisan key:generate --force $STD php artisan config:clear $STD php artisan cache:clear $STD php artisan koel:init --no-assets --no-interaction