moved master-ip to config
This commit is contained in:
parent
ef05b04d91
commit
0755ba2748
|
@ -4,7 +4,7 @@ import { promises as fs } from "fs";
|
|||
import { execSync as exec } from "child_process";
|
||||
|
||||
class updateBind {
|
||||
bindTpl = zone => `zone "${zone}" {\n type slave;\n file "/etc/bind/keyhelp_domains/${zone}";\n masters { 135.181.244.181; };\n};\n`;
|
||||
bindTpl = zone => `zone "${zone}" {\n type slave;\n file "/etc/bind/keyhelp_domains/${zone}";\n masters { ${cfg.bind.master}; };\n};\n`;
|
||||
fetchApi = async path => (await fetch(`https://${cfg.api.host}/${path}`, { headers: { "X-API-Key": cfg.api.key } })).json();
|
||||
|
||||
constructor() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user