Showing
1 changed file
with
1 additions
and
13 deletions
... | @@ -2,18 +2,6 @@ var express = require('express'); | ... | @@ -2,18 +2,6 @@ var express = require('express'); |
2 | var app = express(); | 2 | var app = express(); |
3 | const line = require('@line/bot-sdk'); | 3 | const line = require('@line/bot-sdk'); |
4 | 4 | ||
5 | -import greenlock from 'greenlock-express'; | ||
6 | -const lex=greenlock.create({ | ||
7 | - version: 'v02', | ||
8 | - configDir: '/etc/letsencrypt', | ||
9 | - server:'https://acme-v02.api.letsencrypt.org/directory', | ||
10 | - email:'sweun1@naver.com', | ||
11 | - approveDomains:['www.osschatbot.bu.to','osschatbot.bu.to'], | ||
12 | - agreeTos:true, | ||
13 | - renewWithin:90*24*60*60*1000, | ||
14 | - renewBy:89*24*60*60*1000 | ||
15 | - | ||
16 | -}); | ||
17 | 5 | ||
18 | //papago api | 6 | //papago api |
19 | var request = require('request'); | 7 | var request = require('request'); |
... | @@ -122,6 +110,6 @@ function handleEvent(event) { | ... | @@ -122,6 +110,6 @@ function handleEvent(event) { |
122 | }); | 110 | }); |
123 | } | 111 | } |
124 | 112 | ||
125 | -app.listen(80, function () { | 113 | +app.listen(443, function () { |
126 | console.log('Linebot listening on port 3000!'); | 114 | console.log('Linebot listening on port 3000!'); |
127 | }); | 115 | }); | ... | ... |
-
Please register or login to post a comment