Configuration

All configuration files of the Gozen framework are stored in the .env file. You can set these accordingly.


APP_NAME=Gozen
APP_ENV=local
APP_KEY=q7P5DLOhPaa1qrTr2EfKAgNvT3s5va/Ldg7zANak2ok=
APP_URL=http://localhost
APP_TIMEZONE=UTC
APP_PORT=3000

DB_CONNECTION=sqlite

#DB_CONNECTION=mysql
#DB_HOST=localhost
#DB_PORT=3306
#DB_USER=root
#DB_PASSWORD=
#DB_NAME=go

#DB_CONNECTION=pgsql
#DB_HOST=localhost
#DB_PORT=5432
#DB_USER=postgres
#DB_PASSWORD=postgres
#DB_NAME=go

#DB_CONNECTION=sqlsvr
#DB_HOST=localhost
#DB_PORT=1433
#DB_USER=sa
#DB_PASSWORD=
#DB_NAME=go

MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=25
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="test"

Generating a new APP_KEY

Gozen comes preconfigured with a generic app key. However, the first thing you'll want to do is generate a new one for security purposes. This can be done easily by running this command.

go run cmd/key.go

When you have the new key simply copy and paste it into the .env file

Important

Please ensure you generate a new APP_KEY before you start using Gozen!