Allows another server to handle letsencrypt certificate requests for domains that resolve to the server running this middleware.
This allows LetsEncrypt certificates to be managed automatically in environments where it is not practical to perform certificate management on the same servers that the domain names resolve to.
For example, the
StandAlone LetsEncrypt method could be employed via a cronjob from a server dedicated to managing LetsEncrypt certificates and the application servers could use this module to route the certificate requests to this dedicated server.
npm install --save letsencrypt-express-proxy
To send all LetsEncrypt certificate requests to
le-server.example.com for processing:
var leProxy = 'le-server.example.com';var app = ;app;...
IMPORTANT: this should be the FIRST middleware added to express (or as close to the first as possible)