Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 24 2019 08:55

    lonalore on master

    Fix for CVE-2017-16026 (compare)

  • Mar 23 2019 17:09
    LaocheXe commented #4
  • Oct 29 2018 20:42
    nesjett commented #5
  • Oct 29 2018 20:42
    nesjett commented #5
  • Oct 29 2018 20:03
    lonalore commented #5
  • Oct 29 2018 19:55
    nesjett commented #5
  • Oct 29 2018 19:55
    nesjett commented #5
  • Oct 29 2018 18:50
    lonalore commented #5
  • Oct 29 2018 18:34
    nesjett opened #5
  • Jun 23 2018 04:06
    LaocheXe opened #4
  • Jan 22 2018 11:31
    lonalore commented #3
  • Jan 22 2018 10:51
    nesjett opened #3
  • Jan 13 2018 04:12
  • Feb 12 2017 13:11
    nesjett commented #2
  • Feb 12 2017 12:07
    lonalore commented #2
  • Feb 12 2017 11:20
    lonalore commented #2
  • Feb 12 2017 09:40
    lonalore commented #2
  • Feb 11 2017 21:09
    nesjett commented #2
  • Feb 11 2017 07:09
    lonalore commented #2
  • Feb 10 2017 12:13
    nesjett commented #2
Néstor Sabater
@nesjett
settings = {
scheme: 'http',
port: 30000,
host: 'herokuHost (which crashes if I write somethink)',
resource: '/socket.io',
serviceKey: 'myKey',
backend: {
port: 80,
host: 'myDomain.com',
scheme: 'http',
basePath: '', // If your e107 is in a subfolder, use this syntax: /my_folder
messagePath: '/panel/nodejs/nodejs.php'
},
debug: true,
sslKeyPath: '',
sslCertPath: '',
sslCAPath: '',
baseAuthPath: '/nodejs/',
publishUrl: 'publish',
kickUserUrl: 'user/kick/:uid',
logoutUserUrl: 'user/logout/:authtoken',
addUserToChannelUrl: 'user/channel/add/:channel/:uid',
removeUserFromChannelUrl: 'user/channel/remove/:channel/:uid',
addChannelUrl: 'channel/add/:channel',
removeChannelUrl: 'channel/remove/:channel',
setUserPresenceListUrl: 'user/presence-list/:uid/:uidList',
addAuthTokenToChannelUrl: 'authtoken/channel/add/:channel/:uid',
removeAuthTokenFromChannelUrl: 'authtoken/channel/remove/:channel/:uid',
toggleDebugUrl: 'debug/toggle',
contentTokenUrl: 'content/token',
publishMessageToContentChannelUrl: 'content/token/message',
extensions: [],
clientsCanWriteToChannels: false,
clientsCanWriteToClients: false,
transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling', 'polling'],
jsMinification: true,
jsEtag: true,
gzip: true,
logLevel: 1
};
@lonalore There it is
The heroku port is dynamic so I was using something like env.PORT, I added 30000 as static port just to test
Néstor Sabater
@nesjett
If I let this host empty, seems that e107 makes the connection, cause the log shows sessions, but "undefined uid for those sessions
not sure if right behaviour, plus I get invalid namespace on my e107 ajax requests
Néstor Sabater
@nesjett
ÿ40 ÿ44/:59963,"Invalid namespace"
Sándor Juhász
@lonalore
Thanks! And what's your Admin UI config?
Néstor Sabater
@nesjett
Well, I´ve tested every possible config, http and https, port asigned in that moment to the node-js server...
There is only 2 params I´ve not played with, use CDN and Resource ("/socket.io")
When I try to send a notification trought the notification plugin, seems that the node-js receives the request (a POST) but nothing more happens
Néstor Sabater
@nesjett
Sándor Juhász
@lonalore
Try with this:
scheme: 'http',
port: process.env.PORT || 80,
host: process.env.HOST || "peaceful-citadel-77977.herokuapp.com",
resource: '/socket.io',
serviceKey: '',
backend: {
    port: 80,
    host: 'yourdomain.com',
    scheme: 'http',
    basePath: '',
    messagePath: '/panel/nodejs/nodejs.php'
},
Képernyőkép_2017-02-11_13-56-56.png
Néstor Sabater
@nesjett
Same result, app crashed
I´ll try to set it up on another nodejs hosting, I thinkg the problem may be with heroku itself
Sándor Juhász
@lonalore
I recommend openshift.com. It worked for me.
Néstor Sabater
@nesjett
I already tried that, but seems that some bug was preventing some people from installing the nodejs server
not sure if its solved now
:)