verdaccio-https

verdaccio middleware plugin to redirect to https

Usage no npm install needed!

<script type="module">
  import verdaccioHttps from 'https://cdn.skypack.dev/verdaccio-https';
</script>

README

verdaccio-https

🛡🔬 verdaccio middleware plugin to redirect to https if x-forwarded-proto header is set

verdaccio (latest) build status MIT node Greenkeeper badge

Where it All Began

I have verdaccio running in a container on heroku running in http but can be accessed through SSL using their reverse proxy. Their method of forcing redirect to https is like this... https://github.com/verdaccio/verdaccio/issues/1305

Requirements

 npm install --global verdaccio-https

Usage

To enable it you need to add this to your configuration file.

middlewares:
  https:
    enabled: true

License

MIT (http://www.opensource.org/licenses/mit-license.php)