Initial CoreDNS registration
This commit is contained in:
@@ -6,6 +6,7 @@ const database = require('../database.js');
|
||||
const dbConnection = database.db;
|
||||
const Sequelize = require('sequelize');
|
||||
const pageTitle = 'Domain Manager | Register New Domain';
|
||||
const { RegisterNewDomain } = require('../coredns_bridge.js');
|
||||
|
||||
const blacklistedDomains = [
|
||||
"dns.internal"
|
||||
@@ -80,6 +81,7 @@ router.post('/domains/new', authMw.AllowIfAuthenticated, async(req, res, next) =
|
||||
});
|
||||
|
||||
if(result !== undefined) {
|
||||
RegisterNewDomain(fullDomain);
|
||||
return res.redirect('/domains');
|
||||
} else {
|
||||
errors.push({message: 'Failed to register new domain.'})
|
||||
|
||||
Reference in New Issue
Block a user