Skip to content

Environment Variables Configuration

Before running Basemulti, you need to configure the following environment variables:

Environment VariableDescriptionRequired
BASEMULTI_KEYKey for authenticationYes
NEXT_PUBLIC_URLBase URL of the Basemulti instanceYes
DB_DRIVERDatabase driver type (e.g., sqlite, mysql, postgresql)Yes
DB_DATABASESQLite database file pathRequired for SQLite only
DB_HOSTDatabase host addressRequired for MySQL/PostgreSQL only
DB_PORTDatabase portRequired for MySQL/PostgreSQL only
DB_USERDatabase usernameRequired for MySQL/PostgreSQL only
DB_PASSWORDDatabase passwordRequired for MySQL/PostgreSQL only
DB_DATABASEDatabase nameRequired for MySQL/PostgreSQL only
NEXT_PUBLIC_DISABLE_PROVIDERSDisable service providers, e.g., sqlite,mysql (optional)No

You can set these environment variables by creating a .env file. For example:

bash
BASEMULTI_KEY=your-secret-key
NEXT_PUBLIC_URL=http://localhost:3000
DB_DRIVER=sqlite
DB_DATABASE=./data/database.sqlite

Or for MySQL:

bash
BASEMULTI_KEY=your-secret-key
NEXT_PUBLIC_URL=http://localhost:3000
DB_DRIVER=mysql
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=password
DB_DATABASE=basemulti

Released under the MIT License.