은승우

Update app.js

Showing 1 changed file with 3 additions and 2 deletions
...@@ -9,8 +9,9 @@ var http=require('http'); ...@@ -9,8 +9,9 @@ var http=require('http');
9 var fs = require("fs"); 9 var fs = require("fs");
10 10
11 var httpsOptions = { 11 var httpsOptions = {
12 - key: fs.readFileSync("/etc/letsencrypt/live/oss.chatbot.bu.to/privkey.pem"), 12 + hostname: 'oss.chatbot.bu.to',
13 - cert: fs.readFileSync("/etc/letsencrypt/live/oss.chatbot.bu.to/cert.pem") 13 + key: fs.readFileSync('/etc/letsencrypt/live/oss.chatbot.bu.to/privkey.pem'),
14 + cert: fs.readFileSync('/etc/letsencrypt/live/oss.chatbot.bu.to/cert.pem')
14 }; 15 };
15 16
16 http.createServer(app).listen(80); 17 http.createServer(app).listen(80);
......