Browse Source

nginx

master
zeus 4 years ago
parent
commit
f23677fa8b
  1. 25
      ecosystem.config.js
  2. 49
      ecosystem.config.js.backup
  3. 2
      swarmlab-app/src/run/app.js

25
ecosystem.config.js

@ -1,6 +1,6 @@
module.exports = { module.exports = {
"apps": [ "apps": [
{ {
"name" : "write2mongo", "name" : "write2mongo",
"autorestart" : true, "autorestart" : true,
"watch" : true, "watch" : true,
@ -22,28 +22,7 @@ module.exports = {
"max_restarts": 10, "max_restarts": 10,
"max_memory_restart": "500M", "max_memory_restart": "500M",
"restart_delay": 1000 "restart_delay": 1000
},
{
"name" : "write2proxy",
"autorestart" : true,
"watch" : true,
"cwd" : "/home/node/swarmlab-app",
"script" : "nginx -g 'daemon off;'",
//"script" : "./run-nginx.sh",
//"exec_interpreter" : "bash",
"exec_interpreter" : "none",
//"pid_file" : "/home/node/run/pidnginx.pid",
"log_type" : "json",
"log_file" : "/home/node/logs/logfilenginx",
"error_file" : "/home/node/logs/errorfilenginx",
"out_file" : "/home/node/logs/outfilenginx",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"merge_logs" : true,
"exec_mode" : "fork_mode",
"max_restarts": 10,
"max_memory_restart": "500M",
"restart_delay" : 1000
} }
] ]
} }

49
ecosystem.config.js.backup

@ -0,0 +1,49 @@
module.exports = {
"apps": [
{
"name" : "write2mongo",
"autorestart" : true,
"watch" : true,
//"script" : "/home/node/swarmlab-app/run/app.js",
"cwd" : "/home/node/swarmlab-app",
"script" : "run/app.js",
"run_as_user" : "node",
"args" : "start",
//"node_args" : "--harmony",
//"node_args" : "['--trace-deprecation']",
"pid_file" : "/home/node/run/pid.pid",
"log_type" : "json",
"log_file" : "/home/node/logs/logfile",
"error_file" : "/home/node/logs/errorfile",
"out_file" : "/home/node/logs/outfile",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"merge_logs" : true,
"exec_mode" : "fork",
"max_restarts": 10,
"max_memory_restart": "500M",
"restart_delay": 1000
},
{
"name" : "write2proxy",
"autorestart" : true,
"watch" : true,
"cwd" : "/home/node/swarmlab-app",
"script" : "nginx -g 'daemon off;'",
//"script" : "./run-nginx.sh",
//"exec_interpreter" : "bash",
"exec_interpreter" : "none",
//"pid_file" : "/home/node/run/pidnginx.pid",
"log_type" : "json",
"log_file" : "/home/node/logs/logfilenginx",
"error_file" : "/home/node/logs/errorfilenginx",
"out_file" : "/home/node/logs/outfilenginx",
"log_date_format": "YYYY-MM-DD HH:mm Z",
"merge_logs" : true,
"exec_mode" : "fork_mode",
"max_restarts": 10,
"max_memory_restart": "500M",
"restart_delay" : 1000
}
]
}

2
swarmlab-app/src/run/app.js

@ -561,8 +561,6 @@ io.on('connection', s => {
console.error('socket ...'); console.error('socket ...');
s.auth = false; s.auth = false;
s.join('test');
console.log('test' + ' created ')
// ------------------------------ // ------------------------------
// --- authenticate // --- authenticate
// ------------------------------ // ------------------------------

Loading…
Cancel
Save