mirror of
https://github.com/parkervcp/eggs.git
synced 2024-12-02 04:42:53 +08:00
docs: improved readability for MongoDB readme
This commit is contained in:
parent
04dcb56d9b
commit
aacf078812
@ -14,19 +14,30 @@ By default, MongoDB **does not enforce access control**, meaning that even if yo
|
|||||||
|
|
||||||
> :warning: This is why we recommend to expose your MongoDB database only to your local network, if possible
|
> :warning: This is why we recommend to expose your MongoDB database only to your local network, if possible
|
||||||
|
|
||||||
|
### Enabling authentication
|
||||||
|
|
||||||
|
To enable authentification, you need to edit the following lines to your `mongod.conf` file:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
security:
|
||||||
|
authorization: "enabled"
|
||||||
|
```
|
||||||
|
|
||||||
|
> :closed_lock_with_key: To learn more about MongoDB security, you can read the [MongoDB Security Checklist](https://www.mongodb.com/docs/manual/administration/security-checklist/#security-checklist)
|
||||||
|
|
||||||
### Notes specific to the MongoDB 6 egg
|
### Notes specific to the MongoDB 6 egg
|
||||||
|
|
||||||
The [MongoDB 6 egg](./egg-mongo-d-b6.json) enables access control by default in the `mongod.conf` file, meaning that even if people will be able to connect to your database as guests, [they will not be able to perform any operation, apart from nonhazardous commands](https://dba.stackexchange.com/a/292175)
|
**The [MongoDB 6 egg](./egg-mongo-d-b6.json) enables access control by default** in the `mongod.conf` file, meaning that even if people will be able to connect to your database as guests, [they will not be able to perform any operation, apart from nonhazardous commands](https://dba.stackexchange.com/a/292175)
|
||||||
|
|
||||||
### :warning: If you know what you are doing, and you really want to disable access control, you can do so by editing the `mongod.conf` file
|
### Disabling authentication
|
||||||
|
|
||||||
|
**If you know what you are doing** and want to explicitly disable access control, you can edit the following lines to your `mongod.conf` file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
security:
|
security:
|
||||||
authorization: "disabled"
|
authorization: "disabled"
|
||||||
```
|
```
|
||||||
|
|
||||||
> To learn more about MongoDB security, you can read the [MongoDB Security Checklist](https://www.mongodb.com/docs/manual/administration/security-checklist/#security-checklist)
|
|
||||||
|
|
||||||
## Minimum RAM warning
|
## Minimum RAM warning
|
||||||
|
|
||||||
MongoDB requires approximately 1GB of RAM per 100.000 assets. If the system has to start swapping memory to disk, this will have a severely negative impact on performance, and should be avoided.
|
MongoDB requires approximately 1GB of RAM per 100.000 assets. If the system has to start swapping memory to disk, this will have a severely negative impact on performance, and should be avoided.
|
||||||
|
Loading…
Reference in New Issue
Block a user