Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -23,7 +23,10 @@ const lex = require('greenlock-express').create({ | ... | @@ -23,7 +23,10 @@ const lex = require('greenlock-express').create({ |
23 | 23 | ||
24 | 24 | ||
25 | https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SSL_PORT || 443),()=>{ | 25 | https.createServer(lex.httpsOptions, lex.middleware(app)).listen((process.env.SSL_PORT || 443),()=>{ |
26 | - console.log("server on "); | 26 | + console.log("server on 443"); |
27 | +}); | ||
28 | +http.createServer(lex.middleware(require('redirect-https')())).listen(process.env.PORT || 80,()=>{ | ||
29 | + console.log("server on 80"); | ||
27 | }); | 30 | }); |
28 | //번역 api_url | 31 | //번역 api_url |
29 | var translate_api_url = 'https://openapi.naver.com/v1/papago/n2mt'; | 32 | var translate_api_url = 'https://openapi.naver.com/v1/papago/n2mt'; | ... | ... |
-
Please register or login to post a comment