은승우

Update app.js

Showing 1 changed file with 3 additions and 3 deletions
...@@ -5,7 +5,7 @@ var request = require('request'); ...@@ -5,7 +5,7 @@ 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 7
8 - 8 +/*
9 var fs = require("fs"); 9 var fs = require("fs");
10 10
11 var httpsOptions = { 11 var httpsOptions = {
...@@ -17,7 +17,7 @@ var httpsOptions = { ...@@ -17,7 +17,7 @@ var httpsOptions = {
17 17
18 http.createServer(app).listen(80); 18 http.createServer(app).listen(80);
19 https.createServer(httpsOptions, app).listen(443); 19 https.createServer(httpsOptions, app).listen(443);
20 -/* 20 +*/
21 const lex= require('greenlock-express').create({ 21 const lex= require('greenlock-express').create({
22 version: 'draft-11', // 버전2 22 version: 'draft-11', // 버전2
23 store: require('greenlock-store-fs'), 23 store: require('greenlock-store-fs'),
...@@ -40,7 +40,7 @@ https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SS ...@@ -40,7 +40,7 @@ https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SS
40 }); 40 });
41 http.createServer(lex.middleware(require('redirect-https')())).listen(process.env.PORT || 80,()=>{ 41 http.createServer(lex.middleware(require('redirect-https')())).listen(process.env.PORT || 80,()=>{
42 console.log("server on 80"); 42 console.log("server on 80");
43 -});*/ 43 +});
44 44
45 //papago api 45 //papago api
46 46
......