From 7c5eb17d939817d6f88cc5c8eaf39c280c450df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B5=ED=9D=AC=20=EA=B9=80?= Date: Tue, 10 Dec 2024 14:58:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=E3=85=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 3 ++- src/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env b/.env index ac187e5..f575297 100644 --- a/.env +++ b/.env @@ -1,4 +1,5 @@ -MONGODB_URI="mongodb://101.79.10.128:27017/local" +# MONGODB_URI="mongodb://101.79.10.128:27017/local" +MONGODB_URI="mongodb://siinand:Qlenfrl1199424!@101.79.10.128:27017/local" # MONGODB_URI="mongodb://localhost:27017/local" PORT=5100 # RECEIVING_EMAIL= diff --git a/src/index.js b/src/index.js index b606c32..d044be7 100644 --- a/src/index.js +++ b/src/index.js @@ -26,7 +26,7 @@ const io = new Server(httpServer, { // MongoDB 연결 mongoose - .connect(process.env.MONGODB_URI) +.connect('mongodb://siinand:Qlenfrl1199424%21@101.79.10.128:27017/admin?authSource=admin') .then(() => console.log('MongoDB connected successfully')) .catch((error) => console.error('Error connecting to MongoDB:', error));