Socket
Socket
Sign inDemoInstall

greenlock-express-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

greenlock-express-wrapper

Wrapper for greenlock-express


Version published
Maintainers
1
Created
Source

greenlock-express-wrapper

This is just a no-nonsense wrapper for greenlock-express.

Usage

Example

var server = require("express")()
// Obviously here you have to define Express behavior...
require("greenlock-express-wrapper").listen({
	express: server,
	email: "admin@domain.com",
	approveDomains: [ "domain.com", "sub.domain.com" ],
	plainPort: 8080,
	staging: false,
	verbose: true,
	logFunction: function(message) { console.log(message) }
})
// Now Express is listening on port 443 with SSL and on plain port 8080!

Options

  • express - The Express server object.
  • email - The default email to use to accept agreements.
  • approveDomains - An array of allowed domains.
  • plainPort - Optional. If set, Express server will also listen via HTTP on that port.
  • staging - Optional. If true, greenlock-express will use the staging Let's Encrypt server.
  • verbose - Optional. If true, greenlock-express will log (see below) the server bootstrap.
  • logFunction - Optional. Custom function for logging, with signature logFunction(message). Default is console.log.

Dependencies

Note: the package express isn't in the dependencies list. You'll have to install it in the main package.

Keywords

FAQs

Package last updated on 20 Mar 2018

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