Showing
1 changed file
with
2 additions
and
5 deletions
| ... | @@ -5,7 +5,7 @@ var request = require('request'); | ... | @@ -5,7 +5,7 @@ var request = require('request'); |
| 5 | var https=require('https'); | 5 | var https=require('https'); |
| 6 | var http=require('http'); | 6 | var http=require('http'); |
| 7 | 7 | ||
| 8 | -/* | 8 | + |
| 9 | var fs = require("fs"); | 9 | var fs = require("fs"); |
| 10 | 10 | ||
| 11 | var httpsOptions = { | 11 | var httpsOptions = { |
| ... | @@ -17,7 +17,7 @@ var httpsOptions = { | ... | @@ -17,7 +17,7 @@ var httpsOptions = { |
| 17 | 17 | ||
| 18 | http.createServer(app).listen(80); | 18 | http.createServer(app).listen(80); |
| 19 | https.createServer(httpsOptions, app).listen(443); | 19 | https.createServer(httpsOptions, app).listen(443); |
| 20 | -*/ | 20 | + |
| 21 | /* | 21 | /* |
| 22 | const lex= require('greenlock-express').create({ | 22 | const lex= require('greenlock-express').create({ |
| 23 | version: 'draft-11', // 버전2 | 23 | version: 'draft-11', // 버전2 |
| ... | @@ -182,9 +182,6 @@ function handleEvent(event) { | ... | @@ -182,9 +182,6 @@ function handleEvent(event) { |
| 182 | 182 | ||
| 183 | }); | 183 | }); |
| 184 | } | 184 | } |
| 185 | - app.listen(443, function () { | ||
| 186 | - console.log('Linebot listening on port 3000!'); | ||
| 187 | -}); | ||
| 188 | app.get('/',(req,res)=>{ | 185 | app.get('/',(req,res)=>{ |
| 189 | res.send("hellow"); | 186 | res.send("hellow"); |
| 190 | }) | 187 | }) | ... | ... |
-
Please register or login to post a comment