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-30 16:01:12 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
246d9438c6a6fa4f262b8bdf20ccf300b8cf9793
246d9438
1 parent
56210cd2
q
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
app.js
app.js
View file @
246d943
...
...
@@ -4,15 +4,17 @@ const line = require('@line/bot-sdk');
var
https
=
require
(
'https'
);
const
fs
=
require
(
'fs'
);
var
key
=
fs
.
readFileSync
(
path
.
resolve
(
__dirname
,
'../cert/
key.pem'
));
var
cert
=
fs
.
readFileSync
(
path
.
resolve
(
__dirname
,
'../cert
/cert.pem'
));
var
ca
=
fs
.
readFileSync
(
path
.
resolve
(
__dirname
,
'../cert/cai
.pem'
));
var
key
=
fs
.
readFileSync
(
path
.
resolve
(
'/etc/letsencrypt/live/oss.chatbot.bu.to/priv
key.pem'
));
var
cert
=
fs
.
readFileSync
(
path
.
resolve
(
'/etc/letsencrypt/live/oss.chatbot.bu.to
/cert.pem'
));
var
ca
=
fs
.
readFileSync
(
path
.
resolve
(
'/etc/letsencrypt/live/oss.chatbot.bu.to/fullchain
.pem'
));
https
.
createServer
({
key
:
key
,
cert
:
cert
,
ca
:
ca
},
app
).
listen
(
port
);
},
app
).
listen
(
80
,()
=>
{
console
.
log
(
'server on'
);
});
//papago api
var
request
=
require
(
'request'
);
...
...
Please
register
or
login
to post a comment