diff --git a/.gitignore b/.gitignore index 6b5522c9ea81ea80f4e5cf9b282182a28f49c406..69f34ce199f06b878b5254ad1c71e69057c21bf4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ node_modules/ #환경변수 .env + +.cert/ \ No newline at end of file diff --git a/app.js b/app.js index 4c8413a914db1787a9db38feab1bb7449b47396a..a4e86c8e314795ce51ecdb5255b6ba1e8ae869df 100644 --- a/app.js +++ b/app.js @@ -25,23 +25,11 @@ app.use(expressSanitizer()); app.use('/', express.static('public')); // SSL 인증서와 개인 키 파일 경로 설정 -// SSL 옵션 설정 const sslOptions = { key: fs.readFileSync('./cert/server.key'), cert: fs.readFileSync('./cert/server.cert'), - }; +}; -// // HTTP 서버 설정 (포트 8001) -// const HTTP_PORT = 8001; -// app.listen(HTTP_PORT, () => { -// console.log(`HTTP server started on port ${HTTP_PORT}`); -// }); - -// // HTTPS 서버 설정 (포트 8080) -// const HTTPS_PORT = 8080; -// https.createServer(options, app).listen(HTTPS_PORT, () => { -// console.log(`HTTPS server started on port ${HTTPS_PORT}`); -// }); //middleware app.use(cors({