Active
Project:
Node.js integration
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2012 at 06:12 UTC
Updated:
27 Dec 2012 at 08:45 UTC
Hey guys i've tried to run this module on this environment:
- Ubuntu 11.04
- Nginx
- PHP5-FPM
- Drupal6
- Drupal Module Nodejs Integration 6.x-1 dev
- Nodejs
This is my nginx conf:
server {
location /nodejsapp/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:8080/;
break;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/xxx$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_pass 127.0.0.1:9000;
}
listen 80;
server_name dev.xxx.com;
client_max_body_size 10m;
# log files
#access_log /etc/nginx/logs/xxx.com/access.log;
#error_log /etc/nginx/logs/xxx.com/error.log warn;
access_log /var/log/nginx/xxx.com/access.log;
error_log /var/log/nginx/xxx.com/error.log warn;
# directory
root /home/xxx;
index index.html index.php;
.......etc
and then this is my nodejs.config.js
settings = {
scheme: 'http',
port: 8080,
host: '',
resource: '/socket.io',
serviceKey: '',
backend: {
port: 80,
host: 'dev.xxx.com',
messagePath: '/nodejs/message'
},
debug: true,
sslKeyPath: '',
sslCertPath: '',
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'],
jsMinification: true,
jsEtag: true,
logLevel: 1
};
This is the ssh debug log look alike
Started http server.
info - socket.io started
and there's no other log when website operated
This configuration doesnt work in my server, although if i access dev.xxx.com:8080/socket.io it returns welcome to socket.io, which means the port works
Any help or insight are welcome. Thanks for the attention and i appreciate all your attention guys.
Thanks