node-ssh-modify-nginx

A node ssh upload&reload nginx plugin

Usage no npm install needed!

<script type="module">
  import nodeSshModifyNginx from 'https://cdn.skypack.dev/node-ssh-modify-nginx';
</script>

README

node-ssh-modify-nginx

const sshNginx = require('node-ssh-modify-nginx')

new sshNginx({
  host: '197.0.0.1',
  password: '***',
  extendNgConf: '',
  extendNgLinenum: 72,
  local: path.resolve(__dirname, 'nginx.conf),
  serverPath: '/*/*/conf.d'
}).init()