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.
33
33
Next create ` init-mongo.js ` in your working directory:
34
34
35
35
``` js
36
- {
37
- {
38
- file .examples / init - mongo .js
39
- }
40
- }
36
+ { { file .examples / init- mongo .js } }
41
37
```
42
38
43
39
### 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.
127
127
Next create `init-mongo.js` in your working directory :
128
128
129
129
` ` ` 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
+ })
135
138
` ` `
136
139
137
140
# ## Reverse Proxy
You can’t perform that action at this time.
0 commit comments