mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 01:48:25 +02:00
changing socket.io to exist on the same port as the server, made config file template (removed config file from repo)
This commit is contained in:
15
.gitignore
vendored
15
.gitignore
vendored
@@ -1,7 +1,8 @@
|
||||
#################
|
||||
## npm
|
||||
#################
|
||||
|
||||
npm-debug.log
|
||||
node_modules/
|
||||
sftp-config.json
|
||||
#################
|
||||
## npm
|
||||
#################
|
||||
|
||||
npm-debug.log
|
||||
node_modules/
|
||||
sftp-config.json
|
||||
public/config.json
|
||||
|
||||
6
public/config.default.json
Normal file
6
public/config.default.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"socket" : {
|
||||
"address" : "localhost",
|
||||
"port" : "4567"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"socket" : {
|
||||
"address" : "198.199.80.41",
|
||||
"port" : "8081"
|
||||
}
|
||||
}
|
||||
@@ -44,3 +44,4 @@ var express = require('express'),
|
||||
}(WebServer));
|
||||
|
||||
server.listen(config.port);
|
||||
global.server = server;
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
var SocketIO = require('socket.io').listen(8081);
|
||||
var SocketIO = require('socket.io').listen(global.server);
|
||||
|
||||
|
||||
(function(io) {
|
||||
|
||||
Reference in New Issue
Block a user