use altDomain when present to configure certs and nginx

This commit is contained in:
Girish Ramakrishnan
2016-04-19 00:55:16 -07:00
parent e11b762ea1
commit 500fb452e7
+1 -1
View File
@@ -99,7 +99,7 @@ function configureNginx(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
var vhost = config.appFqdn(app.location);
var vhost = app.altDomain || config.appFqdn(app.location);
certificates.ensureCertificate(vhost, function (error, certFilePath, keyFilePath) {
if (error) return callback(error);