은승우

Update app.js

Showing 1 changed file with 2 additions and 0 deletions
......@@ -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';
......