Sign inSign up

uvwxy/nodejs-ssl-proxy

By uvwxy

•Updated over 8 years ago

A Node.js based SSL proxy.

Image
0

932

uvwxy/nodejs-ssl-proxy repository overview

⁠nodejs-ssl-proxy

A Node.js based SSL proxy.

⁠Running

Add this to your docker-compose.yml, and adapt <SERVICE> to the service you want to proxy:

https:
  restart: always
  image: uvwxy/nodejs-ssl-proxy
  environment:
    - SSL_PROXY_TARGET=http://hosttobeproxied:8080
    - SSL_PROXY_PORT=8443
  ports:
    - 443:8443
  links:
    - <SERVICE>:hosttobeproxied
  volumes:
    - ./secrets:/opt/node-js-ssl-proxy/secrets/

Make sure your key.pem and cert.pem files reside in secrets/. If you don't have any keys you can run the following to create them.

bash generate-certs.sh

⚠️ Note: Do not use this in production. In that case you will have something better at hand in any case ;).

Tag summary

Content type

Image

Digest

Size

257.3 MB

Last updated

over 8 years ago

docker pull uvwxy/nodejs-ssl-proxy