déplacement .Keys et config

This commit is contained in:
2024-10-16 09:30:41 +02:00
parent 8e1261cfa7
commit 848fc4909e
11 changed files with 71 additions and 15 deletions
+4 -1
View File
@@ -40,5 +40,8 @@ GET http://localhost:3000/api/favorite/getAll
# Prod
git clone https://gitlab.cyro-technology.com/cyril/Jucundus
cd Jucundus
docker Compose up -d
npm run start
Dashboard Agendash
https://jucundus-api.saucisse.ninja/dash/
-29
View File
@@ -1,29 +0,0 @@
const config = {
db: {
connectionString: "mongodb://db:27017",
dbName: "jucundus",
},
session: {
sessionCollection: "Session",
sessionConfig: {
name: "jucundus.sid",
cookie: {
maxAge: 1000 * 60 * 60 * 24 * 30, // 30 days
httpOnly: true, // only accessible by the server
secure: true,
},
resave: false, // don't save session if unmodified
saveUninitialized: true,
}
},
jwtOptions: {
issuer: "jucundus.com",
audience: "yoursite",
},
agent :{
ApiAgentURL: 'http://host.docker.internal:3020/api',
token: '861v48gr4YTHJTUre0reg40g8e6r8r64eggv1r4e6g4r81PKREVJ8g6reg46r8eg416reST6ger84g14er86e',
}
};
module.exports = { config };