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 20:38:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
60fff2aa9ec639cfff75725366d34b32cef3f496
60fff2aa
1 parent
262340f7
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
app.js
app.js
View file @
60fff2a
...
...
@@ -4,25 +4,9 @@ const line = require('@line/bot-sdk');
var
https
=
require
(
'https'
);
const
fs
=
require
(
'fs'
);
var
key
=
fs
.
readFileSync
(
'/etc/letsencrypt/live/oss.chatbot.bu.to/privkey.pem'
);
var
cert
=
fs
.
readFileSync
(
'/etc/letsencrypt/live/oss.chatbot.bu.to/cert.pem'
);
var
ca
=
fs
.
readFileSync
(
'/etc/letsencrypt/live/oss.chatbot.bu.to/fullchain.pem'
);
https
.
createServer
({
key
:
key
,
cert
:
cert
,
ca
:
ca
},
app
).
listen
(
80
,()
=>
{
console
.
log
(
'server on 80'
);
});
https
.
createServer
({
key
:
key
,
cert
:
cert
,
ca
:
ca
},
app
).
listen
(
443
,()
=>
{
console
.
log
(
'server on 443'
);
});
app
.
listen
(
443
,()
=>
{
console
.
log
(
"server on 443"
);
})
//papago api
var
request
=
require
(
'request'
);
...
...
Please
register
or
login
to post a comment