...
Signed-off-by: Walamana <joniogerg@gmail.com>
This commit is contained in:
parent
c056d02790
commit
ab2428739e
8
app.js
8
app.js
@ -18,6 +18,8 @@ var con = mysql.createConnection({
|
||||
password: "Wnc4q_75",
|
||||
database: "minis",
|
||||
ssl: {
|
||||
key: fs.readFileSync(process.cwd() + "/private.key"),
|
||||
cert: fs.readFileSync(process.cwd() + "/primary.crt"),
|
||||
ca: fs.readFileSync(process.cwd() + "/mysql-ca.crt")
|
||||
}
|
||||
});
|
||||
@ -150,10 +152,10 @@ https.createServer(
|
||||
ca: fs.readFileSync(process.cwd() + "/mysql-ca.crt")
|
||||
},
|
||||
app
|
||||
).listen(3000);
|
||||
).listen(process.env.PORT);
|
||||
|
||||
|
||||
|
||||
var http = require('http');
|
||||
http.createServer(app).listen(80);
|
||||
|
||||
|
||||
function isConnected(){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user