Toggle navigation
Toggle navigation
This project
Loading...
Sign in
은승우
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
은승우
2019-11-29 21:07:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e751935dff6e709f7eb9874917f4808d911a481
7e751935
1 parent
6b12c41e
app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
13 deletions
app.js
app.js
View file @
7e75193
...
...
@@ -2,18 +2,6 @@ var express = require('express');
var
app
=
express
();
const
line
=
require
(
'@line/bot-sdk'
);
import
greenlock
from
'greenlock-express'
;
const
lex
=
greenlock
.
create
({
version
:
'v02'
,
configDir
:
'/etc/letsencrypt'
,
server
:
'https://acme-v02.api.letsencrypt.org/directory'
,
email
:
'sweun1@naver.com'
,
approveDomains
:[
'www.osschatbot.bu.to'
,
'osschatbot.bu.to'
],
agreeTos
:
true
,
renewWithin
:
90
*
24
*
60
*
60
*
1000
,
renewBy
:
89
*
24
*
60
*
60
*
1000
});
//papago api
var
request
=
require
(
'request'
);
...
...
@@ -122,6 +110,6 @@ function handleEvent(event) {
});
}
app
.
listen
(
80
,
function
()
{
app
.
listen
(
443
,
function
()
{
console
.
log
(
'Linebot listening on port 3000!'
);
});
...
...
Please
register
or
login
to post a comment