은승우

Update app.js

Showing 1 changed file with 1 additions and 2 deletions
...@@ -16,8 +16,7 @@ var httpsOptions = { ...@@ -16,8 +16,7 @@ var httpsOptions = {
16 http.createServer(app).listen(80); 16 http.createServer(app).listen(80);
17 https.createServer(httpsOptions, app).listen(443);*/ 17 https.createServer(httpsOptions, app).listen(443);*/
18 18
19 -var greenlock= require('greenlock-express'); 19 +const lex= require('greenlock-express').create({
20 -const lex = greenlock .create({
21 version: 'draft-11', // 버전2 20 version: 'draft-11', // 버전2
22 store: require('greenlock-store-fs'), 21 store: require('greenlock-store-fs'),
23 configDir: '/etc/letsencrypt', // 또는 ~/letsencrypt/etc 22 configDir: '/etc/letsencrypt', // 또는 ~/letsencrypt/etc
......