Guides API docs Source docs Source code

Configuration

How to configure HashBrown for your needs

System

Using /config/system.cfg

{
  "rootUrl": "/cms"     // Hosting HashBrown on a subpath
  "projects": [         // Defining standard projects 
    {
      "id": "<project id>",
      "name" "<project name">,
      "environments": [ "<environment name>" ],
      "locales": [ "<locale name>" ]
    }
  ],
  "canAddProjects": true|false,
  "canAddEnvironments": true|false
}

Database

Using environment variables:

Using /config/database.cfg

{
  "host": "host" | ["host1", "host2"] | "host1,host2",
  "port": "port" | [port1, port2] | "port1,port2",
  "username": "<username>",
  "password": "<password>",
  "prefix": "<database name prefix>",
  "options": {
    "<key>": "<value>",
    ...
  }
}