Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gavinuhma/node-ssl-terminator
SSL termination in node.js
https://github.com/gavinuhma/node-ssl-terminator
Last synced: 2 months ago
JSON representation
SSL termination in node.js
- Host: GitHub
- URL: https://github.com/gavinuhma/node-ssl-terminator
- Owner: gavinuhma
- Created: 2012-04-12T01:33:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-20T01:10:52.000Z (over 12 years ago)
- Last Synced: 2024-10-04T18:57:09.119Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 96.7 KB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# terminator
SSL termination in node.js
## Installation
```
$ npm install terminator
```## API
```js
var Terminator = require('terminator');
var terminator = new Terminator();var fs = require('fs');
var options = {
key: fs.readFileSync('./server.key'),
cert: fs.readFileSync('./server.crt'),
ca: [fs.readFileSync('./ca.crt')],
ciphers: 'ALL:!LOW:!DSS:!EXP'
};terminator
.listen(443)
.forward(80, 'localhost')
//.hideErrors()
.hideLogs();terminator.start(options, function() {
console.log('SSL terminator started!');
});
```## License
(The MIT License)
Copyright (c) 2012 GoInstant, Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.