ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [01/50] [abbrv] ignite git commit: Web console: removed legacy backend port.
Date Mon, 13 Mar 2017 08:45:22 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-2.0 86fad9823 -> aab4f30bc


Web console: removed legacy backend port.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/5456caff
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/5456caff
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/5456caff

Branch: refs/heads/ignite-2.0
Commit: 5456caffc08259045c1fcf26f7d22819ff39aff7
Parents: e12f2ec
Author: Andrey Novikov <anovikov@gridgain.com>
Authored: Wed Mar 1 09:49:08 2017 +0700
Committer: Andrey Novikov <anovikov@gridgain.com>
Committed: Wed Mar 1 09:49:08 2017 +0700

----------------------------------------------------------------------
 modules/web-console/backend/app/settings.js |  8 +-------
 modules/web-console/backend/index.js        | 10 ----------
 2 files changed, 1 insertion(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5456caff/modules/web-console/backend/app/settings.js
----------------------------------------------------------------------
diff --git a/modules/web-console/backend/app/settings.js b/modules/web-console/backend/app/settings.js
index a79572e..94f3d90 100644
--- a/modules/web-console/backend/app/settings.js
+++ b/modules/web-console/backend/app/settings.js
@@ -51,13 +51,7 @@ module.exports.factory = function(nconf, fs) {
 
     return {
         agent: {
-            dists: 'agent_dists',
-            port: _normalizePort(nconf.get('agentServer:port') || 3002),
-            SSLOptions: nconf.get('agentServer:ssl') && {
-                key: fs.readFileSync(nconf.get('agentServer:key')),
-                cert: fs.readFileSync(nconf.get('agentServer:cert')),
-                passphrase: nconf.get('agentServer:keyPassphrase')
-            }
+            dists: 'agent_dists'
         },
         server: {
             port: _normalizePort(nconf.get('server:port') || 3000),

http://git-wip-us.apache.org/repos/asf/ignite/blob/5456caff/modules/web-console/backend/index.js
----------------------------------------------------------------------
diff --git a/modules/web-console/backend/index.js b/modules/web-console/backend/index.js
index 9eeff35..27d7298 100644
--- a/modules/web-console/backend/index.js
+++ b/modules/web-console/backend/index.js
@@ -86,16 +86,6 @@ Promise.all([injector('settings'), injector('app'), injector('agent-manager'),
i
         agentMgr.attach(server);
         browserMgr.attach(server);
 
-        // Start legacy agent server.
-        const agentServer = settings.agent.SSLOptions
-            ? https.createServer(settings.agent.SSLOptions) : http.createServer();
-
-        agentServer.listen(settings.agent.port);
-        agentServer.on('error', _onError.bind(null, settings.agent.port));
-        agentServer.on('listening', _onListening.bind(null, agentServer.address()));
-
-        agentMgr.attachLegacy(agentServer);
-
         // Used for automated test.
         if (process.send)
             process.send('running');


Mime
View raw message