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-12-01 23:20:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7ea71b6e4968c0498abbaf773a5c615fe3301baa
7ea71b6e
1 parent
18a6613a
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
app.js
app.js
View file @
7ea71b6
var
express
=
require
(
'express'
);
var
app
=
express
();
const
line
=
require
(
'@line/bot-sdk'
);
var
greenlock
=
require
(
'greenlock-express'
);
var
server
=
greenlock
.
create
({
version
:
'v02'
,
configDir
:
'/etc/letsencrypt'
,
server
:
'https://acme-v02.api.letsencrypt.org/directory'
,
email
:
'sweun1@naver.com'
,
approveDomains
:
[
'www.oss.chatbot.bu.to'
,
'oss.chatbot.bu.to'
],
//my url, domain
agreeTos
:
true
,
renewWithin
:
90
*
24
*
60
*
60
*
1000
,
renewBy
:
89
*
24
*
60
*
60
*
1000
,
app
:
app
}).
listen
(
80
,
443
);
var
createServer
=
require
(
"auto-sni"
);
createServer
({
email
:
"sweun1@naver.com"
,
domains
:
[
"www.oss.chatbot.bu.to"
,
"oss.chatbot.bu.to"
],
agreeTos
:
true
},
app
);
//papago api
var
request
=
require
(
'request'
);
...
...
Please
register
or
login
to post a comment