This commit is contained in:
CanbiZ 2025-12-09 14:25:47 +01:00
parent ae5c23318f
commit d7d29ebeec
2 changed files with 5 additions and 8 deletions

View File

@ -28,14 +28,10 @@
} }
], ],
"default_credentials": { "default_credentials": {
"username": null, "username": "admin@koel.dev",
"password": null "password": "KoelIsCool"
}, },
"notes": [ "notes": [
{
"text": "First visit will prompt you to create an admin account",
"type": "info"
},
{ {
"text": "Media files should be placed in /opt/koel_media", "text": "Media files should be placed in /opt/koel_media",
"type": "info" "type": "info"

View File

@ -37,13 +37,13 @@ fetch_and_deploy_gh_release "koel" "koel/koel" "prebuild" "latest" "/opt/koel" "
msg_info "Configuring Koel" msg_info "Configuring Koel"
mkdir -p /opt/koel_media /opt/koel_sync mkdir -p /opt/koel_media /opt/koel_sync
cd /opt/koel cd /opt/koel
APP_KEY=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)
cat <<EOF >/opt/koel/.env cat <<EOF >/opt/koel/.env
APP_NAME=Koel APP_NAME=Koel
APP_ENV=production APP_ENV=production
APP_DEBUG=false APP_DEBUG=false
APP_URL=http://${LOCAL_IP} APP_URL=http://${LOCAL_IP}
APP_KEY=base64:${APP_KEY} APP_KEY=
TRUSTED_HOSTS= TRUSTED_HOSTS=
@ -118,6 +118,7 @@ msg_info "Installing Koel (Patience)"
export COMPOSER_ALLOW_SUPERUSER=1 export COMPOSER_ALLOW_SUPERUSER=1
cd /opt/koel cd /opt/koel
$STD composer install --no-interaction --no-dev --optimize-autoloader $STD composer install --no-interaction --no-dev --optimize-autoloader
$STD php artisan key:generate --force
$STD php artisan config:clear $STD php artisan config:clear
$STD php artisan cache:clear $STD php artisan cache:clear
$STD php artisan koel:init --no-assets --no-interaction $STD php artisan koel:init --no-assets --no-interaction