Skip to content

Commit f2d0fa7

Browse files
Staging (#277)
* increase poolSize for mongoclient * mongodb conn string * remove certs * Encryption (#272) * Import Data * Import Data * Import Data * Import API Update * Import API Fix * Update * Updates Import API * Updates Import API * Updates Import API * Import API Update * Update * Import API Update * Import API Update * chaging rolling update to api * Import API Fix * Import API Fix * Import API Test * Import API Test * Import API Fix * Update README.md * Import Export API * Import Export API (#262) * Import Export API * Import API * Import Export API (#263) * Import Export API * Import Export API * Import API * fixed realTime for multiple tables on a single client * added cache-control for app-icon images (#269) * Update README.md * added cache-control for app-icon images * Encryption * Encryption * Encryption * Resolve * Encryption Changes * Encryption Changes * use legacy node * enable both http and https at same time
1 parent 69d8ab3 commit f2d0fa7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# CloudBoost Dockerfile
33
#
44
# Pull base image nodejs image.
5-
FROM node:8.2.1
5+
FROM node:6.12.0
66

77
#Maintainer.
88
MAINTAINER Nawaz Dhandala <[email protected]>

server.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ http = require('http').createServer(global.app);
103103
require('./database-connect/cors.js')(); //cors!
104104
var io = require('socket.io')();
105105

106-
// attach io to https only if running in hosted env and certs are found
106+
io.attach(http);
107+
// attach io to https, only if running in hosted env and certs are found
107108
if (https && CLOUDBOOST_HOSTED) {
108109
io.attach(https);
109-
} else {
110-
io.attach(http);
111110
}
112111

112+
113113
var Redis = require('ioredis');
114114

115115
var ioRedisAdapter = require('socket.io-redis');

0 commit comments

Comments
 (0)