فهرست منبع

Added read only instructions for MongoDB

Andrew Kane 10 سال پیش
والد
کامیت
8216d878c9
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -111,6 +111,16 @@ GRANT SELECT, SHOW VIEW ON database_name.* TO blazer@’127.0.0.1′ IDENTIFIED
 FLUSH PRIVILEGES;
 FLUSH PRIVILEGES;
 ```
 ```
 
 
+### MongoDB
+
+Create a user with read only permissions:
+
+```
+db.createUser({user: "blazer", pwd: "password", roles: ["read"]})
+```
+
+Also, make sure authorization is enabled when you start the server.
+
 ### Sensitive Data
 ### Sensitive Data
 
 
 To protect sensitive info like password hashes and access tokens, use views. Documentation coming soon.
 To protect sensitive info like password hashes and access tokens, use views. Documentation coming soon.