Last change
on this file since 518 was 517, checked in by Kris Deugau, 12 years ago |
/trunk
Review, clean up, and refiddle configuration handling:
- Drop %config hash as a global, and replace it with a local hash in new(),
for much more elegant per-object configuration handling
- Replace references to %config with $self->
- Remove obsolete loadConfig() sub; new() can call the lightly revised
cfgload() directly
- Revise cfgload() to accept a hashref to put the parsed configuration
entries in
- Clean up example config file, including new rpc_iplist and
max_fcgi_requests options
Plus a few miscellaneous extra bits of cleanup:
- Remove obsolete, never-used %def hash.
- Only try to disconnect the database handle in DESTROY if it was active
in the first place
|
File size:
1.2 KB
|
Rev | Line | |
---|
[216] | 1 | # System-wide config for DNSDB
|
---|
| 2 |
|
---|
| 3 | # Database connection info
|
---|
[517] | 4 | #dbname = dsndb
|
---|
| 5 | #dbuser = dnsdb
|
---|
| 6 | #dbpass = dnsdbpwd
|
---|
| 7 | #dbhost = dnsdbhost
|
---|
[216] | 8 |
|
---|
| 9 | # Mail settings
|
---|
[517] | 10 | #mailhost = smtp.example.com
|
---|
| 11 | #mailnotify = dns@example.com
|
---|
| 12 | #mailsender = hostmaster@example.com
|
---|
| 13 | #mailname = Example Corp DNS Administrator
|
---|
| 14 | #orgname = Example Corp
|
---|
| 15 | #domain = example.com
|
---|
[216] | 16 |
|
---|
| 17 | # session - note this is fed directly to CGI::Session
|
---|
| 18 | # timeout supports (s)econds, (m)inutes, (h)ours, (d)ays, (w)eeks, (M)months, or (y)ears
|
---|
[517] | 19 | #timeout = 3h
|
---|
| 20 | #sessiondir = /var/lib/dnsdb
|
---|
[216] | 21 |
|
---|
[517] | 22 | ## misc
|
---|
| 23 |
|
---|
[216] | 24 | # flag to indicate if failed changes should be logged
|
---|
[517] | 25 | #log_failures = 1
|
---|
[216] | 26 | # number of entries to display in lists
|
---|
[517] | 27 | #perpage = 25
|
---|
| 28 | # maximum number of FCGI requests to serve before reloading/restarting FCGI
|
---|
| 29 | #max_fcgi_requests = 10
|
---|
| 30 | # path for per-zone cache files for export
|
---|
| 31 | #exportcache = /var/cache/dnsdb
|
---|
| 32 |
|
---|
| 33 | # RPC ACL
|
---|
| 34 | # A comma-separated list starting with an abstract "system name"
|
---|
| 35 | # (passed by an RPC caller), followed by a list of IP addresses
|
---|
| 36 | # allowed to make RPC calls with that name.
|
---|
| 37 | # Finer-grained access control must be handled by the caller.
|
---|
| 38 | #rpc_iplist = billing, 192.168.0.11
|
---|
| 39 | #rpc_iplist = billing, 172.12.12.12
|
---|
| 40 | #rpc_iplist = custportal, 192.168.1.12, 192.168.1.13
|
---|
Note:
See
TracBrowser
for help on using the repository browser.