1.2.0 • Published 3 years ago

ssh-update-nginx v1.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

ssh-update-nginx

const sshNginx = require('ssh-update-nginx')

new sshNginx({
  host: '197.0.0.1', // ip
  password: '***',
  extendNgConf: '', // 需要更新的nginx配置内容
  extendNgLinenum: 72, // 插入到配置文件行数
  local: path.resolve(__dirname, 'nginx.conf), // 本地nginx配置文件地址
  serverPath: '/*/*/conf.d' // nginx配置路径
}).init()