1.5 KiB
- Generate the application keys after solditime starts You need to generate the application keys for your solidtime installation. You can do this by running the following command:
´´´ docker compose run scheduler php artisan self-host:generate-keys ´´´
This command will output random values for the APP_KEY, PASSPORT_PRIVATE_KEY, and PASSPORT_PUBLIC_KEY environment variables. You can copy these values and add them to the laravel.env file.
- Create a user Depending on your configuration of the APP_ENABLE_REGISTRATION environment variable, you can either create a user via the registration form or you need to create a user via the CLI. Per default the registration is disabled.
You can create a user via the CLI with the following command: ´´´ docker compose exec scheduler php artisan admin:user:create "Firstname Lastname" "firstname.lastname@some-email-provider.test" --verify-email ´´´
More information about the CLI commands can be found in the CLI commands documentation.
If you want this first user to be a super admin, you can add the email address to the SUPER_ADMINS environment variable in the laravel.env file. ´´´ SUPER_ADMINS="firstname.lastname@some-email-provider.test" ´´´ The command output a random password for the user. Afterwards you need to restart the containers: ´´´ docker compose down && docker compose up -d ´´´ Then you should be able log in with the user you created. If the user is a super admin, you can access the super admin panel via /admin.