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-03 19:13:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
839b24811125f1a124d097d481ebc44a70d9aec3
839b2481
1 parent
35636e2a
fix greenlock app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
app.js
app.js
View file @
839b248
...
...
@@ -5,22 +5,17 @@ var request = require('request');
var
https
=
require
(
'https'
);
var
http
=
require
(
'http'
);
const
lex
=
require
(
'greenlock-express'
).
create
({
version
:
'draft-11'
,
// 버전2
store
:
require
(
'greenlock-store-fs'
),
configDir
:
'/etc/letsencrypt'
,
// 또는 ~/letsencrypt/etc
approveDomains
:
(
opts
,
certs
,
cb
)
=>
{
if
(
certs
)
{
opts
.
domains
=
[
'oss.chatbot.bu.to'
,
'www.oss.chatbot.bu.to'
];
}
else
{
opts
.
email
=
'sweun1@naver.com'
;
opts
.
agreeTos
=
true
;
}
cb
(
null
,
{
options
:
opts
,
certs
});
},
version
:
'draft-11'
,
configDir
:
'/etc/letsencrypt/'
,
email
:
'sweun1@naver.com'
,
agreeTos
:
true
,
approvedDomains
:
[
'oss.chatbot.bu.to'
,
'www.oss.chatbot.bu.to'
],
renewWithin
:
81
*
24
*
60
*
60
*
1000
,
renewBy
:
80
*
24
*
60
*
60
*
1000
,
});
//papago api
}).
listen
(
80
,
443
);
//papago api
https
.
createServer
(
lex
.
httpsOptions
,
lex
.
middleware
(
app
)).
listen
((
process
.
env
.
SSL_PORT
||
443
),()
=>
{
...
...
Please
register
or
login
to post a comment