ensureCertificate now takes app object

This commit is contained in:
Girish Ramakrishnan
2016-04-19 08:13:44 -07:00
parent 46fee9e431
commit 0e825272ae
2 changed files with 6 additions and 6 deletions
+1 -3
View File
@@ -99,9 +99,7 @@ function configureNginx(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
var vhost = app.altDomain || config.appFqdn(app.location);
certificates.ensureCertificate(vhost, function (error, certFilePath, keyFilePath) {
certificates.ensureCertificate(app, function (error, certFilePath, keyFilePath) {
if (error) return callback(error);
nginx.configureApp(app, certFilePath, keyFilePath, callback);