은승우

Update app.js

Showing 1 changed file with 3 additions and 19 deletions
......@@ -4,25 +4,9 @@ const line = require('@line/bot-sdk');
var https=require('https');
const fs = require('fs');
var key = fs.readFileSync('/etc/letsencrypt/live/oss.chatbot.bu.to/privkey.pem');
var cert = fs.readFileSync('/etc/letsencrypt/live/oss.chatbot.bu.to/cert.pem');
var ca = fs.readFileSync('/etc/letsencrypt/live/oss.chatbot.bu.to/fullchain.pem');
https.createServer({
key: key,
cert: cert,
ca: ca
}, app).listen(80,()=>{
console.log('server on 80');
});
https.createServer({
key: key,
cert: cert,
ca: ca
}, app).listen(443,()=>{
console.log('server on 443');
});
app.listen(443,()=>{
console.log("server on 443");
})
//papago api
var request = require('request');
......