Prod ve Dev birbirinden izole edildi.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
PORT=4000
|
||||
MONGO_URI=mongodb://mongo:27017/wisecoltci
|
||||
# Prod için zorunlu Mongo bağlantısı
|
||||
# Örnek: mongodb://<APP_USER>:<APP_PASS>@<HOST>:27017/wisecoltci?authSource=wisecoltci
|
||||
MONGO_URI=mongodb://app:change-me@mongo-host:27017/wisecoltci?authSource=wisecoltci
|
||||
|
||||
ADMIN_USERNAME=admin
|
||||
ADMIN_PASSWORD=supersecret
|
||||
JWT_SECRET=change-me
|
||||
|
||||
6
backend/mongo-init.js
Normal file
6
backend/mongo-init.js
Normal file
@@ -0,0 +1,6 @@
|
||||
db = db.getSiblingDB("wisecoltci");
|
||||
db.createUser({
|
||||
user: process.env.MONGO_APP_USERNAME || "app",
|
||||
pwd: process.env.MONGO_APP_PASSWORD || "change-me",
|
||||
roles: [{ role: "readWrite", db: "wisecoltci" }]
|
||||
});
|
||||
Reference in New Issue
Block a user