From 8040d4ac2d190eafb2e53221eff3af382b7dbca3 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Sun, 11 Oct 2015 16:30:22 +0200 Subject: [PATCH] Add simpleauth logging middleware --- src/simpleauth.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simpleauth.js b/src/simpleauth.js index e352f1420..f0db6583b 100644 --- a/src/simpleauth.js +++ b/src/simpleauth.js @@ -116,6 +116,7 @@ function initializeExpressSync() { router.get ('/api/v1/logout', logout); app + .use(middleware.morgan('dev', { immediate: false })) .use(middleware.timeout(10000)) .use(json) .use(router) @@ -128,7 +129,7 @@ function start(callback) { assert.strictEqual(typeof callback, 'function'); gHttpServer = initializeExpressSync(); - gHttpServer.listen(config.get('simpleAuthPort'), '127.0.0.1', callback); + gHttpServer.listen(config.get('simpleAuthPort'), '0.0.0.0', callback); } function stop(callback) {