diff --git a/.github/templates/README.template.md b/.github/templates/README.template.md index 70decee..037a8c3 100644 --- a/.github/templates/README.template.md +++ b/.github/templates/README.template.md @@ -33,11 +33,7 @@ And for the Redirect Uri set it to the one from your `.env` file. Next create `init-mongo.js` in your working directory: ```js -{ - { - file.examples / init - mongo.js - } -} +{ { file.examples/init-mongo.js } } ``` ### Reverse Proxy diff --git a/README.md b/README.md index ac392c7..f33902c 100644 --- a/README.md +++ b/README.md @@ -127,11 +127,14 @@ And for the Redirect Uri set it to the one from your `.env` file. Next create `init-mongo.js` in your working directory: ```js -{ - { - file.examples / init - mongo.js - } -} +// This is only for initializing the db and creating the mailauth user + +db = db.getSiblingDB("mailauth") +db.createUser({ + user: "mailauth", + pwd: "SECURE_PW", // This should match the one in your env + roles: [{ role: "readWrite", db: "mailauth" }], +}) ``` ### Reverse Proxy