modify-nginx-conf
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

modify-nginx-conf

Modify nginx server file 修改nginx配置文件,增加新路由配置

Install

npm i -D modify-nginx-conf
yarn modify-nginx-conf -D

Usage

add following code to your file.

create-react-app

const WebpackModifyNginxConfigPlugin = require('modify-nginx-conf')

new WebpackModifyNginxConfigPlugin({
  username: 'root',
  host: 'xxxxxx',
  password: 'xxxxxx',
  locationPath: `xxxxxxx`,
  nginxFilePath: '/etc/nginx/conf.d/default.conf',
  aliasFilePath: `xxxx`
})

Readme

Keywords

Package Sidebar

Install

npm i modify-nginx-conf

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

4.7 kB

Total Files

4

Last publish

Collaborators

  • wtl1019