Skip to content

Commit

Permalink
Update config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KhoiBao1 authored Jan 20, 2025
1 parent efe0167 commit ee399ff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ module.exports = {
port: 3000
},
database: {
connection: process.env.DB_URI || 'mongodb://localhost:27017/shopping', // Dùng biến môi trường để linh hoạt
connection: 'mongodb+srv://bkhoi:baokhoi352006@cluster0.pptfi.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0',
option: {
useNewUrlParser: true,
useUnifiedTopology: true,
autoIndex: false
useUnifiedTopology: true
}
},
session: {
key: process.env.SESSION_KEY || '27bda112-99dd-4496-8015-ea20d1034228'
key: '27bda112-99dd-4496-8015-ea20d1034228'
}
};

0 comments on commit ee399ff

Please sign in to comment.