outragedns/env-account

dev-master 2021-05-19 13:51 UTC

This package is auto-updated.

Last update: 2024-04-19 19:59:19 UTC


README

PowerDNS account based environment wrapper

Configuration

$container->add(EnvironmentFactoryInterface::class, function () {
    $config['db'] = [
        'dsn' => 'mysql:host=172.31.3.55;dbname=pdns;charset=utf8mb4',
        'username' => 'pdns',
        'password' => 'pdnspw',
    ];

    $config['account'] = 'westie@localhost';

    $config['api'] = [
        'base_url' => 'http://172.31.3.55:8088',
        'key' => '216f6e36f7557887cdaf65b689e2e6a2',
    ];

    return new EnvironmentFactory($config);
});