1.1.3 • Published 6 years ago

greenlock-express-wrapper v1.1.3

Weekly downloads
-
License
WTFPL
Repository
gitlab
Last release
6 years ago

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.

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago