Showing
1 changed file
with
4 additions
and
4 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 = { |
... | @@ -14,8 +14,8 @@ var httpsOptions = { | ... | @@ -14,8 +14,8 @@ var httpsOptions = { |
14 | }; | 14 | }; |
15 | 15 | ||
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 | const lex= require('greenlock-express').create({ | 19 | const lex= require('greenlock-express').create({ |
20 | version: 'draft-11', // 버전2 | 20 | version: 'draft-11', // 버전2 |
21 | store: require('greenlock-store-fs'), | 21 | store: require('greenlock-store-fs'), |
... | @@ -38,7 +38,7 @@ https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SS | ... | @@ -38,7 +38,7 @@ https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SS |
38 | }); | 38 | }); |
39 | http.createServer(lex.middleware(require('redirect-https')())).listen(process.env.PORT || 80,()=>{ | 39 | http.createServer(lex.middleware(require('redirect-https')())).listen(process.env.PORT || 80,()=>{ |
40 | console.log("server on 80"); | 40 | console.log("server on 80"); |
41 | -}); | 41 | +});*/ |
42 | 42 | ||
43 | //papago api | 43 | //papago api |
44 | 44 | ... | ... |
-
Please register or login to post a comment