From 8f6098e7df6ef5e478ed9fcc1c1b3363363344ca Mon Sep 17 00:00:00 2001 From: NaHyun22 <nhle0217@ajou.ac.kr> Date: Thu, 5 Dec 2024 02:50:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20fwt=20=ED=86=A0=ED=81=B0=20access=20and?= =?UTF-8?q?=20refresh=ED=86=A0=ED=81=B0=20=EB=B6=84=EB=A6=AC+https=20?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ app.js | 14 +------------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 6b5522c..69f34ce 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 4c8413a..a4e86c8 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({ -- GitLab