moved master-ip to config

This commit is contained in:
Flummi 2021-11-28 04:16:23 +00:00
parent ef05b04d91
commit 0755ba2748

View File

@ -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() {