mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Improved pdns dev config
This commit is contained in:
parent
0dd713e634
commit
0244187c29
@ -130,7 +130,7 @@ func getCommonArgs() []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
args = append(args, "--log", "/data/logs/acme.sh.log")
|
args = append(args, "--log", "/data/logs/acme.sh.log")
|
||||||
// args = append(args, "--debug", "2")
|
args = append(args, "--debug", "2")
|
||||||
|
|
||||||
return args
|
return args
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,79 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
How this was generated:
|
||||||
|
1. bring up an empty pdns stack
|
||||||
|
2. use api to create a zone ...
|
||||||
|
|
||||||
|
curl -X POST \
|
||||||
|
'http://npm.dev:8081/api/v1/servers/localhost/zones' \
|
||||||
|
--header 'X-API-Key: npm' \
|
||||||
|
--header 'Content-Type: application/json' \
|
||||||
|
--data-raw '{
|
||||||
|
"name": "example.com.",
|
||||||
|
"kind": "Native",
|
||||||
|
"masters": [],
|
||||||
|
"nameservers": [
|
||||||
|
"ns1.pdns.",
|
||||||
|
"ns2.pdns."
|
||||||
|
]
|
||||||
|
}'
|
||||||
|
|
||||||
|
3. Dump sql:
|
||||||
|
|
||||||
|
docker exec -ti npm.pdns.db mysqldump -u pdns -p pdns
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8mb4 */;
|
||||||
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||||
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||||
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||||
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||||
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||||
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `comments`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `comments`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `comments` (
|
CREATE TABLE `comments` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`domain_id` int(11) NOT NULL,
|
`domain_id` int(11) NOT NULL,
|
||||||
`name` varchar(255) NOT NULL,
|
`name` varchar(255) NOT NULL,
|
||||||
`type` varchar(10) NOT NULL,
|
`type` varchar(10) NOT NULL,
|
||||||
`modified_at` int(11) NOT NULL,
|
`modified_at` int(11) NOT NULL,
|
||||||
`account` varchar(40) DEFAULT NULL,
|
`account` varchar(40) CHARACTER SET utf8mb3 DEFAULT NULL,
|
||||||
`comment` text NOT NULL,
|
`comment` text CHARACTER SET utf8mb3 NOT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `comments_name_type_idx` (`name`,`type`),
|
KEY `comments_name_type_idx` (`name`,`type`),
|
||||||
KEY `comments_order_idx` (`domain_id`,`modified_at`)
|
KEY `comments_order_idx` (`domain_id`,`modified_at`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `comments`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `comments` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `cryptokeys`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `cryptokeys`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `cryptokeys` (
|
CREATE TABLE `cryptokeys` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`domain_id` int(11) NOT NULL,
|
`domain_id` int(11) NOT NULL,
|
||||||
@ -20,8 +83,25 @@ CREATE TABLE `cryptokeys` (
|
|||||||
`content` text DEFAULT NULL,
|
`content` text DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `domainidindex` (`domain_id`)
|
KEY `domainidindex` (`domain_id`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `cryptokeys`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `cryptokeys` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `cryptokeys` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `cryptokeys` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `domainmetadata`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `domainmetadata`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `domainmetadata` (
|
CREATE TABLE `domainmetadata` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`domain_id` int(11) NOT NULL,
|
`domain_id` int(11) NOT NULL,
|
||||||
@ -29,54 +109,123 @@ CREATE TABLE `domainmetadata` (
|
|||||||
`content` text DEFAULT NULL,
|
`content` text DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `domainmetadata_idx` (`domain_id`,`kind`)
|
KEY `domainmetadata_idx` (`domain_id`,`kind`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
INSERT INTO `domainmetadata` VALUES (1,1,'SOA-EDIT-API','DEFAULT');
|
--
|
||||||
|
-- Dumping data for table `domainmetadata`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `domainmetadata` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `domainmetadata` DISABLE KEYS */;
|
||||||
|
INSERT INTO `domainmetadata` VALUES
|
||||||
|
(1,1,'SOA-EDIT-API','DEFAULT');
|
||||||
|
/*!40000 ALTER TABLE `domainmetadata` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `domains`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `domains`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `domains` (
|
CREATE TABLE `domains` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`name` varchar(255) NOT NULL,
|
`name` varchar(255) NOT NULL,
|
||||||
`master` varchar(128) DEFAULT NULL,
|
`master` varchar(128) DEFAULT NULL,
|
||||||
`last_check` int(11) DEFAULT NULL,
|
`last_check` int(11) DEFAULT NULL,
|
||||||
`type` varchar(6) NOT NULL,
|
`type` varchar(8) NOT NULL,
|
||||||
`notified_serial` int(10) unsigned DEFAULT NULL,
|
`notified_serial` int(10) unsigned DEFAULT NULL,
|
||||||
`account` varchar(40) DEFAULT NULL,
|
`account` varchar(40) CHARACTER SET utf8mb3 DEFAULT NULL,
|
||||||
|
`options` varchar(64000) DEFAULT NULL,
|
||||||
|
`catalog` varchar(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `name_index` (`name`)
|
UNIQUE KEY `name_index` (`name`),
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
KEY `catalog_idx` (`catalog`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
INSERT INTO `domains` VALUES (1,'example.com','',NULL,'NATIVE',NULL,'');
|
--
|
||||||
|
-- Dumping data for table `domains`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `domains` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `domains` DISABLE KEYS */;
|
||||||
|
INSERT INTO `domains` VALUES
|
||||||
|
(1,'example.com','',NULL,'NATIVE',NULL,'',NULL,NULL);
|
||||||
|
/*!40000 ALTER TABLE `domains` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `records`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `records`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `records` (
|
CREATE TABLE `records` (
|
||||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||||
`domain_id` int(11) DEFAULT NULL,
|
`domain_id` int(11) DEFAULT NULL,
|
||||||
`name` varchar(255) DEFAULT NULL,
|
`name` varchar(255) DEFAULT NULL,
|
||||||
`type` varchar(10) DEFAULT NULL,
|
`type` varchar(10) DEFAULT NULL,
|
||||||
`content` TEXT DEFAULT NULL,
|
`content` varchar(64000) DEFAULT NULL,
|
||||||
`ttl` int(11) DEFAULT NULL,
|
`ttl` int(11) DEFAULT NULL,
|
||||||
`prio` int(11) DEFAULT NULL,
|
`prio` int(11) DEFAULT NULL,
|
||||||
`disabled` tinyint(1) DEFAULT 0,
|
`disabled` tinyint(1) DEFAULT 0,
|
||||||
`ordername` varchar(255) DEFAULT NULL,
|
`ordername` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL,
|
||||||
`auth` tinyint(1) DEFAULT 1,
|
`auth` tinyint(1) DEFAULT 1,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `nametype_index` (`name`,`type`),
|
KEY `nametype_index` (`name`,`type`),
|
||||||
KEY `domain_id` (`domain_id`),
|
KEY `domain_id` (`domain_id`),
|
||||||
KEY `ordername` (`ordername`)
|
KEY `ordername` (`ordername`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `records`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `records` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `records` DISABLE KEYS */;
|
||||||
INSERT INTO `records` VALUES
|
INSERT INTO `records` VALUES
|
||||||
(1,1,'example.com','NS','ns1.pdns',1500,0,0,NULL,1),
|
(1,1,'example.com','NS','ns1.pdns',1500,0,0,NULL,1),
|
||||||
(2,1,'example.com','NS','ns2.pdns',1500,0,0,NULL,1),
|
(2,1,'example.com','NS','ns2.pdns',1500,0,0,NULL,1),
|
||||||
(4,1,'test.example.com','A','10.0.0.1',60,0,0,NULL,1),
|
(3,1,'example.com','SOA','a.misconfigured.dns.server.invalid hostmaster.example.com 2023030501 10800 3600 604800 3600',1500,0,0,NULL,1);
|
||||||
(5,1,'example.com','SOA','a.misconfigured.dns.server.invalid hostmaster.example.com 2022020702 10800 3600 604800 3600',1500,0,0,NULL,1);
|
/*!40000 ALTER TABLE `records` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `supermasters`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `supermasters`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `supermasters` (
|
CREATE TABLE `supermasters` (
|
||||||
`ip` varchar(64) NOT NULL,
|
`ip` varchar(64) NOT NULL,
|
||||||
`nameserver` varchar(255) NOT NULL,
|
`nameserver` varchar(255) NOT NULL,
|
||||||
`account` varchar(40) NOT NULL,
|
`account` varchar(40) CHARACTER SET utf8mb3 NOT NULL,
|
||||||
PRIMARY KEY (`ip`,`nameserver`)
|
PRIMARY KEY (`ip`,`nameserver`)
|
||||||
) DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `supermasters`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `supermasters` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `supermasters` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `supermasters` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `tsigkeys`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `tsigkeys`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `tsigkeys` (
|
CREATE TABLE `tsigkeys` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`name` varchar(255) DEFAULT NULL,
|
`name` varchar(255) DEFAULT NULL,
|
||||||
@ -84,4 +233,23 @@ CREATE TABLE `tsigkeys` (
|
|||||||
`secret` varchar(255) DEFAULT NULL,
|
`secret` varchar(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `namealgoindex` (`name`,`algorithm`)
|
UNIQUE KEY `namealgoindex` (`name`,`algorithm`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `tsigkeys`
|
||||||
|
--
|
||||||
|
|
||||||
|
LOCK TABLES `tsigkeys` WRITE;
|
||||||
|
/*!40000 ALTER TABLE `tsigkeys` DISABLE KEYS */;
|
||||||
|
/*!40000 ALTER TABLE `tsigkeys` ENABLE KEYS */;
|
||||||
|
UNLOCK TABLES;
|
||||||
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||||
|
|
||||||
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||||
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||||
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||||
|
Loading…
Reference in New Issue
Block a user