오명준

Correct server executing file(again)

Showing 1 changed file with 0 additions and 6 deletions
...@@ -15,12 +15,6 @@ app.get('/', function (req, res) { ...@@ -15,12 +15,6 @@ app.get('/', function (req, res) {
15 }); 15 });
16 16
17 try { 17 try {
18 - const option = {
19 - ca: fs.readFileSync('/etc/letsencrypt/live/' + domain +'/fullchain.pem'),
20 - key: fs.readFileSync(path.resolve(process.cwd(), '/etc/letsencrypt/live/' + domain +'/privkey.pem'), 'utf8').toString(),
21 - cert: fs.readFileSync(path.resolve(process.cwd(), '/etc/letsencrypt/live/' + domain +'/cert.pem'), 'utf8').toString(),
22 - };
23 -
24 HTTPS.createServer(option, app).listen(sslport, () => { 18 HTTPS.createServer(option, app).listen(sslport, () => {
25 console.log(`[HTTPS] Server is started on port ${sslport}`); 19 console.log(`[HTTPS] Server is started on port ${sslport}`);
26 }); 20 });
......