Skip to content
abh edited this page Apr 29, 2012 · 3 revisions

PowerDNS::API Configuration

The configuration file is called powerdns-api.conf and should be located in the application root directory. The location can also be specified with the POWERDNS_API_CONFIG environment variable. The file is in strict JSON format.

The database parameters specify how to connect to the MySQL database, the secret is currently unused but will eventually be used to generate cookie tokens etc, so make sure to change it to something long and random.

{
    "secret": "this-needs-to-be-changed-foo!",
    "database": {
        "database": "pdns",
        "user": "root",
        "password": null,
        "host": "localhost"
    }
}
Clone this wiki locally