https://github.com/marshallswain/feathers-nginx-conf
Edit Nginx.conf as a Feathers Service
https://github.com/marshallswain/feathers-nginx-conf
Last synced: 4 months ago
JSON representation
Edit Nginx.conf as a Feathers Service
- Host: GitHub
- URL: https://github.com/marshallswain/feathers-nginx-conf
- Owner: marshallswain
- License: mit
- Created: 2017-08-05T12:18:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-05T12:20:09.000Z (almost 8 years ago)
- Last Synced: 2024-11-08T12:51:00.718Z (7 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# feathers-nginx-conf
[](https://travis-ci.org/marshallswain/feathers-nginx-conf)
[](https://codeclimate.com/github/marshallswain/feathers-nginx-conf)
[](https://codeclimate.com/github/marshallswain/feathers-nginx-conf/coverage)
[](https://david-dm.org/marshallswain/feathers-nginx-conf)
[](https://www.npmjs.com/package/feathers-nginx-conf)> Make edits to Nginx.conf through the Feathers Service Interface
## Installation
```
npm install feathers-nginx-conf --save
```## Documentation
Please refer to the [feathers-nginx-conf documentation](http://docs.feathersjs.com/) for more details.
## Complete Example
Here's an example of a Feathers server that uses `feathers-nginx-conf`.
```js
const feathers = require('feathers');
const rest = require('feathers-rest');
const hooks = require('feathers-hooks');
const bodyParser = require('body-parser');
const errorHandler = require('feathers-errors/handler');
const plugin = require('feathers-nginx-conf');// Initialize the application
const app = feathers()
.configure(rest())
.configure(hooks())
// Needed for parsing bodies (login)
.use(bodyParser.json())
.use(bodyParser.urlencoded({ extended: true }))
// Initialize your feathers plugin
.use('/plugin', plugin())
.use(errorHandler());app.listen(3030);
console.log('Feathers app started on 127.0.0.1:3030');
```## License
Copyright (c) 2017
Licensed under the [MIT license](LICENSE).