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 22:03:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0acfa08dbd7716d8162e70fba4fb573baacade1f
0acfa08d
1 parent
0d7086cc
app.ks
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
app.js
app.js
View file @
0acfa08
var
express
=
require
(
'express'
);
var
app
=
express
();
const
line
=
require
(
'@line/bot-sdk'
);
var
https
=
require
(
'https'
);
const
https
=
require
(
'https'
);
const
fs
=
require
(
'fs'
);
const
options
=
{
ca
:
fs
.
readFileSync
(
'/etc/letsencrypt/live/oss.chatbot.bu.to/fullchain.pem'
),
...
...
@@ -10,11 +10,7 @@ const options = {
cert
:
fs
.
readFileSync
(
'/etc/letsencrypt/live/oss.chatbot.bu.to/cert.pem'
)
};
https
.
createServer
(
options
,
(
req
,
res
)
=>
{
res
.
writeHead
(
200
);
res
.
end
(
'hello world\n'
);
}).
listen
(
8000
);
https
.
createServer
(
options
,
app
).
listen
(
443
);
//papago api
var
request
=
require
(
'request'
);
...
...
Please
register
or
login
to post a comment