Skip to content

Commit bc7e457

Browse files
authored
Merge pull request #3 from CodeShellDev/dev
Update Main
2 parents 2807ef7 + 1c6ae4e commit bc7e457

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/templates/README.template.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ And for the Redirect Uri set it to the one from your `.env` file.
3333
Next 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

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,14 @@ And for the Redirect Uri set it to the one from your `.env` file.
127127
Next 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

0 commit comments

Comments
 (0)