Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nisaacson/secure-proxy
Forward all https requests to a router service
https://github.com/nisaacson/secure-proxy
Last synced: about 1 month ago
JSON representation
Forward all https requests to a router service
- Host: GitHub
- URL: https://github.com/nisaacson/secure-proxy
- Owner: nisaacson
- Created: 2013-07-03T16:23:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-03T23:28:33.000Z (over 11 years ago)
- Last Synced: 2024-04-14T14:46:49.463Z (7 months ago)
- Language: JavaScript
- Size: 1.56 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Secure Proxy
TLS terminator that takes all https requests, strips of the tls, and forwards the request over http to a router service# Installation
Clone the repository. In the root directory of the repository, execute the following
```bash
node secure-proxy.js --config test/config.json
```This will start the secure proxy server using a self-signed certificate. The `test/config.json` settings will make the secure proxy server forward all traffic to a router server at
* host: localhost
* port: 4000# Configuration
A `/path/to/config.json` file path can be supplied as a --config argument when running the *secure-proxy.js* file`config.json` should contain at least the following
```javascript
{
"application": {
"router": {
"host": "127.0.0.1",
"port": 4000
}
},
"tls": {
"keyFilePath": "/path/to/key.pem",
"certFilePath": "/path/to/cert.pem"
}
}
```You can also specify the configuration options as command line paramters
```bash
node secure-proxy.json --application:router:host="127.0.0.1" --application:router:port=4000 --tls:keyFilePath="/path/to/key.pem" --tls:certFilePath="/path/to/cert.pem" --tls:port=443
```# Logging
By default the secure proxy will log to the console. If you wish to send your log data to [loggly](https://loggly.com), specify a loggly input token in your `config.json` file
```javascript
{
"loggly": {
"inputToken": "loggly input token here"
},
"application": {
"router": {
"host": "127.0.0.1",
"port": 4000
}
},
"tls": {
"keyFilePath": "/path/to/key.pem",
"certFilePath": "/path/to/cert.pem"
}
}
```