Showing
1 changed file
with
4 additions
and
2 deletions
| 1 | const request = require('request'); | 1 | const request = require('request'); |
| 2 | +/* | ||
| 2 | const fs = require('fs'); | 3 | const fs = require('fs'); |
| 3 | const path = require('path'); | 4 | const path = require('path'); |
| 4 | const HTTPS = require('https'); | 5 | const HTTPS = require('https'); |
| 5 | const domain = "www.osstestdw.ml" | 6 | const domain = "www.osstestdw.ml" |
| 6 | const sslport = 23023; | 7 | const sslport = 23023; |
| 8 | +*/ | ||
| 7 | var express = require('express') | 9 | var express = require('express') |
| 8 | var app = express() | 10 | var app = express() |
| 9 | 11 | ||
| ... | @@ -161,7 +163,7 @@ var server = app.listen(23023, function(){ | ... | @@ -161,7 +163,7 @@ var server = app.listen(23023, function(){ |
| 161 | var port = server.address().port; | 163 | var port = server.address().port; |
| 162 | console.log('App listening at http://%s:%s', host, port) | 164 | console.log('App listening at http://%s:%s', host, port) |
| 163 | }) | 165 | }) |
| 164 | - | 166 | +/* |
| 165 | try { | 167 | try { |
| 166 | const option = { | 168 | const option = { |
| 167 | ca: fs.readFileSync('/etc/letsencrypt/live/' + domain +'/fullchain.pem'), | 169 | ca: fs.readFileSync('/etc/letsencrypt/live/' + domain +'/fullchain.pem'), |
| ... | @@ -175,4 +177,4 @@ try { | ... | @@ -175,4 +177,4 @@ try { |
| 175 | } catch (error) { | 177 | } catch (error) { |
| 176 | console.log('[HTTPS] HTTPS 오류가 발생하였습니다. HTTPS 서버는 실행되지 않습니다.'); | 178 | console.log('[HTTPS] HTTPS 오류가 발생하였습니다. HTTPS 서버는 실행되지 않습니다.'); |
| 177 | console.log(error); | 179 | console.log(error); |
| 178 | -} | 180 | +}*/ | ... | ... |
-
Please register or login to post a comment