Showing
1 changed file
with
9 additions
and
14 deletions
... | @@ -5,22 +5,17 @@ var request = require('request'); | ... | @@ -5,22 +5,17 @@ var request = require('request'); |
5 | var https=require('https'); | 5 | var https=require('https'); |
6 | var http=require('http'); | 6 | var http=require('http'); |
7 | const lex = require('greenlock-express').create({ | 7 | const lex = require('greenlock-express').create({ |
8 | - version: 'draft-11', // 버전2 | 8 | + version: 'draft-11', |
9 | - store: require('greenlock-store-fs'), | 9 | + configDir: '/etc/letsencrypt/', |
10 | - configDir: '/etc/letsencrypt', // 또는 ~/letsencrypt/etc | 10 | + email: 'sweun1@naver.com', |
11 | - approveDomains: (opts, certs, cb) => { | 11 | + agreeTos: true, |
12 | - if (certs) { | 12 | + approvedDomains: ['oss.chatbot.bu.to','www.oss.chatbot.bu.to'], |
13 | - opts.domains = ['oss.chatbot.bu.to', 'www.oss.chatbot.bu.to']; | ||
14 | - } else { | ||
15 | - opts.email = 'sweun1@naver.com'; | ||
16 | - opts.agreeTos = true; | ||
17 | - } | ||
18 | - cb(null, { options: opts, certs }); | ||
19 | - | ||
20 | - }, | ||
21 | renewWithin: 81 * 24 * 60 * 60 * 1000, | 13 | renewWithin: 81 * 24 * 60 * 60 * 1000, |
22 | renewBy: 80 * 24 * 60 * 60 * 1000, | 14 | renewBy: 80 * 24 * 60 * 60 * 1000, |
23 | -});//papago api | 15 | +}).listen(80, 443); |
16 | + | ||
17 | + | ||
18 | +//papago api | ||
24 | 19 | ||
25 | 20 | ||
26 | https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SSL_PORT || 443),()=>{ | 21 | https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SSL_PORT || 443),()=>{ | ... | ... |
-
Please register or login to post a comment