LINXD-2222: Update
This commit is contained in:
parent
d54403299f
commit
53a654c50f
5
app.js
5
app.js
@ -70,6 +70,11 @@ const options = {
|
|||||||
// const httpsServer = https.createServer(options, app);
|
// const httpsServer = https.createServer(options, app);
|
||||||
// const io = new Server(httpsServer, { allowEIO3: true });
|
// const io = new Server(httpsServer, { allowEIO3: true });
|
||||||
const httpsServer = https.createServer(app, options);
|
const httpsServer = https.createServer(app, options);
|
||||||
|
|
||||||
|
app.get('/', (req, res) => {
|
||||||
|
res.send('Now using https..');
|
||||||
|
});
|
||||||
|
|
||||||
const io = new Server(httpsServer, {
|
const io = new Server(httpsServer, {
|
||||||
origins: '*:*',
|
origins: '*:*',
|
||||||
allowRequest: (req) => {
|
allowRequest: (req) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user