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 22:48:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
18a6613aca4b31a893b494771cb63c266ca3b760
18a6613a
1 parent
b0a93ae3
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
18a6613
var
express
=
require
(
'express'
);
var
app
=
express
();
const
line
=
require
(
'@line/bot-sdk'
);
var
greenlock
=
require
(
'greenlock
=
express'
);
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
);
...
...
Please
register
or
login
to post a comment