From f731c1ed0ba3956ca3e604626cd6fbf0ed1cdfa8 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 19 Feb 2016 15:44:15 +0100 Subject: [PATCH] Dynamically detect if an oauth proxy should be used for an app --- src/apptask.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apptask.js b/src/apptask.js index 502ca7c40..eddd29ba3 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -101,11 +101,12 @@ function configureNginx(app, callback) { assert.strictEqual(typeof callback, 'function'); var vhost = config.appFqdn(app.location); + var oauthProxy = apps.requiresOAuthProxy(app); certificates.ensureCertificate(vhost, function (error, certFilePath, keyFilePath) { if (error) return callback(error); - nginx.configureApp(app, certFilePath, keyFilePath, callback); + nginx.configureApp(app, oauthProxy, certFilePath, keyFilePath, callback); }); }