-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.sample.php
62 lines (55 loc) · 3.05 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/* config.sample.php - DNS-CP
* Copyright (C) 2013 DNS-CP project
* http://dns-cp-de/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// config
// database
$database["typ"] = "mysql"; // Database typ (available: mysql, pgsql and sqlite)
$database["host"] = "localhost"; // Database host
$database["port"] = "3306"; // Database port
$database["user"] = "dns"; // Database user
$database["pw"] = "dns"; // Database password
$database["db"] = "dns"; // MyDNS Database
// database tables
$conf["soa"] = "dns_soa"; // SOA Table
$conf["rr"] = "dns_rr"; // RR Table
$conf["users"] = "dns_users"; // Users Table
// general
$conf["name"] = "DNS-CP"; // Name of Page
$conf["lang"] = "en"; // Site Language
// server
$conf["server"] = "mydns"; // Server typ (available: mydns, powerdns)
// api
$conf['apikey'] = ""; // access key for the api
$conf['enableapi'] = false; // enable the api true/false
// remote management api servers
$conf['useremoteapi'] = false; // use remote api true/false
$conf['api'][0]['url'] = ""; // url to remote api
$conf['api'][0]['key'] = ""; // key for the remote api
// Default values on create
$conf["mbox"] = "info.dns-cp.de."; // mbox for SOA
$conf["soans"] = "ns1.dns-cp.de."; // NS for SOA
$conf["ns"] = array("ns1.dns-cp.de.", "ns2.dns-cp.de.", "ns3.dns-cp.de.", "ns4.dns-cp.de.", "ns5.dns-cp.de.");
$conf["a"] = "127.0.0.1"; // A record for new zone
$conf["aaaa"] = Null; // AAAA record for new zone
$conf["txt"] = "v=spf1 mx -all"; // TXT record for new zone
$conf["ttl"] = 86400; // TTL of soa record
$conf["refresh"] = 28800; // Refresh of soa record
$conf["retry"] = 7200; // Retry of soa record
$conf["expire"] = 604800; // Expire of soa record
$conf["minimum_ttl"] = 60; // Minimum ttl for some records
?>