0.0.3 • Published 3 years ago
aliyun-dns-auto-setter v0.0.3
aliyun-dns-auto-setter
Aliyun dns auto setter
install
npm i aliyun-dns-auto-setter -S
usage
const { createTask } = require('aliyun-dns-auto-setter')
const config = {
"accessKey":"YOUR_ALIYUN_ACCESS_KEY",
"secretKey":"YOUR_ALIYUN_SECRET_KEY",
"url":"https://s3.example.com/ddns/a.example.com",
"domain":"a.example.com",
intervalWithMinutes:5
}
const task = createTask(config)
or
const { createTask } = require('aliyun-dns-auto-setter')
const config = {
"accessKey":"YOUR_ALIYUN_ACCESS_KEY",
"secretKey":"YOUR_ALIYUN_SECRET_KEY",
"urlList":[
{
"url":"https://s3.example.com/ddns/a.example.com",
"domain":"a.example.com"
}
],
intervalWithMinutes:5
}
const task = createTask(config)