sslize

3.0.0 • Public • Published

SSLize

Automatic reverse proxy with let's encrypt.
All requests received will be create a reverse proxy to an regular http server SSL will be generated with let's encrypt for each host in requests. This is very useful to put that app in front an web server that only has support for http

Install

npm install -g sslize

Usage

First register the domain[s] to use:
```
npx greenlock add --subject domain.com  --altnames domain.com
```

then start the sslize
```
sslize email protocol://host:port productionServer(true|false)
```

Example

```
npx greenlock add --subject domain.com  --altnames domain.com
sslize john@example.com http://destination-server.com:8080 false
```

This command will start a webserver on port 80 and 443 to receive the incoming connection then register the ssl if necessary then connect it to the destination, in our case http://destination-server.com:8080, but it could be another webserver as well.

Production

sslize john@example.com http://destination-server.com:8080 true

Only use the productionServer only when you have sure that will work, first test with staging server, setting the last argument to false

References

https://www.npmjs.com/package/greenlock

https://git.rootprojects.org/root/greenlock.js.git

https://git.rootprojects.org/root/greenlock.js/issues/29

https://git.rootprojects.org/root/greenlock-express.js

https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples

https://github.com/fernandobhz/sslize/blob/00580e97ac2cd6402ba912d915ca975fbc33eb73/sslize.js

https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/http-proxy/server.js

Credits

https://www.linkedin.com/in/fernandoreisguimaraes/

Donate

paypaldonate

Package Sidebar

Install

npm i sslize

Weekly Downloads

102

Version

3.0.0

License

ISC

Unpacked Size

9.81 kB

Total Files

9

Last publish

Collaborators

  • fernandobhz