Skip to main content

Configuration

Setup Lunalytics

Configurations don't need to be setup before starting Lunalytics. But this it is HIGHLY recommended you run the setup script or create a config.json for security reasons. A script can be created by running the following command:

> npm run setup

The following values need to be added to the config.json file:

KeyDefaultType
Port2308Number
DatabaseSQLiteSQLite / PostgreSQL
migrationTypeautomatic"automatic" / "manual"
versionpackage.json versionString
websiteUrlnullString
retentionPeriod6mString
registertrueBoolean
isDemoundefinedBoolean

SQLite config

{
"name": String,
"type": "better-sqlite3"
}

PostgreSQL config

{
"name": String,
"type": "pg",
"config": {
"host": String,
"port": Number,
"user": String,
"password": String
}
}