services.powerdns-admin.config

Configuration python file. See the example configuration for options. Also see Flask Session configuration as the version shipped with NixOS is more recent than the one PowerDNS-Admin expects and it requires explicit configuration.

Type
string
Default
""
Example
''
  import cachelib
  
  BIND_ADDRESS = '127.0.0.1'
  PORT = 8000
  SQLALCHEMY_DATABASE_URI = 'postgresql://powerdnsadmin@/powerdnsadmin?host=/run/postgresql'
  SESSION_TYPE = 'cachelib'
  SESSION_CACHELIB = cachelib.simple.SimpleCache()
''
Declared
<nixpkgs/nixos/modules/services/web-apps/powerdns-admin.nix>