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-02 13:57:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d6a2b4ff1b9dde358ec0fb0ac2c5641932d76f14
d6a2b4ff
1 parent
d96b7f0a
Update app.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
app.js
app.js
View file @
d6a2b4f
...
...
@@ -6,6 +6,7 @@ var request = require('request');
var
https
=
require
(
'https'
);
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
)
{
...
...
@@ -20,6 +21,7 @@ const lex = require('greenlock-express').create({
renewBy
:
80
*
24
*
60
*
60
*
1000
,
});
//papago api
https
.
createServer
(
lex
.
httpsOptions
,
lex
.
middleware
(
app
)).
listen
(
process
.
env
.
SSL_PORT
||
443
);
//번역 api_url
var
translate_api_url
=
'https://openapi.naver.com/v1/papago/n2mt'
;
...
...
Please
register
or
login
to post a comment