Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aliyun-docker-https

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun-docker-https

Http to https for aliyun docker.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

aliyun-docker-https

Http to https for aliyun docker.

Quick Start

  • npm install aliyun-docker-https to install aliyun-docker-https;
  • express

var express = require('express')
  , app     = express()

app.use(require('./index.js')({
  ignore: ['/test/url$']
}));

app.listen(3000)
console.log('express listen on 3000.')

  • koa
var app = require('koa')()
app.use(require('./index.js')({
  ignore: ['/test/url$'],
  mode: 'koa'
}));
app.listen(3000)
  • test
// 302
curl -H 'x-forwarded-proto: http' -i  http://localhost:3000/
curl -H 'x-forwarded-proto: http' -i  http://localhost:3000/test/urla
curl -H 'x-forwarded-proto: http' -i  http://localhost:3000/test/urla?a=a

// 404
curl -H 'x-forwarded-proto: https' -i  http://localhost:3000/
curl -H 'x-forwarded-proto: https' -i  http://localhost:3000/test/url
curl -H 'x-forwarded-proto: http' -i  http://localhost:3000/test/url

Config

NameDescriptionDefault value
ignoreA url list should be ignored.*
headerThe header name.x-forwarded-proto
modeexpress or koa mode.express

Keywords

FAQs

Package last updated on 29 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc