File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,7 @@ And for the Redirect Uri set it to the one from your `.env` file.
3333Next create ` init-mongo.js ` in your working directory:
3434
3535``` js
36- {
37- {
38- file .examples / init - mongo .js
39- }
40- }
36+ { { file .examples / init- mongo .js } }
4137```
4238
4339### Reverse Proxy
Original file line number Diff line number Diff line change @@ -127,11 +127,14 @@ And for the Redirect Uri set it to the one from your `.env` file.
127127Next create `init-mongo.js` in your working directory :
128128
129129` ` ` js
130- {
131- {
132- file.examples / init - mongo.js
133- }
134- }
130+ // This is only for initializing the db and creating the mailauth user
131+
132+ db = db.getSiblingDB("mailauth")
133+ db.createUser({
134+ user: "mailauth",
135+ pwd: "SECURE_PW", // This should match the one in your env
136+ roles: [{ role: "readWrite", db: "mailauth" }],
137+ })
135138` ` `
136139
137140# ## Reverse Proxy
You can’t perform that action at this time.
0 commit comments