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 section 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.

The hypnotoad section is for the Hypnotoad server that you can use to run the API in production (there are other deployment methods, too).

{
    "secret": "this-needs-to-be-changed-foo!",
    "database": {
        "database": "pdns",
        "user": "root",
        "password": null,
        "host": "localhost"
    },
    "hypnotoad": {
        "proxy": 1,
        "listen": ["http://127.0.0.1:4002"],
        "clients": 100,
        "user": "pdnsapi"
    }
}
Clone this wiki locally