-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
23 lines (23 loc) · 780 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/****************************************************************************
* Luca BICEGO
* Copyright (c) 2017
*
* via San Giorgio, 46
* 36030 Caltrano (VI) ITALY
*
* All rights reserved.
*
* NOTE: This software module can be reused / distributed with written
* authorisation of the copyright holder
*
****************************************************************************/
var path = require("path");
var webServer = require(path.join(process.cwd() + '/public/mymodules/webServer.js'));
var server_port = process.env.PORT || 3000;
var server_ip_address = undefined;//process.env.IP || '0.0.0.0';
//Crea il server
var ws = new webServer();
//Per forzare https
var force_https = false;
//Apre la ricezione
ws.open(server_port, server_ip_address,force_https);