mirror of https://github.com/dapr/docs.git
Adding params key in mongo-state component (#2265)
* Adding params key in mongo-state component Signed-off-by: shivam <shivamkm07@gmail.com> * Adding params description Signed-off-by: shivam <shivamkm07@gmail.com> * Update daprdocs/content/en/reference/components-reference/supported-state-stores/setup-mongodb.md Signed-off-by: shivam <shivamkm07@gmail.com> Co-authored-by: Mark Fussell <markfussell@gmail.com> Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
This commit is contained in:
parent
e62bf8f5c8
commit
7d5bbd8e0f
|
|
@ -40,6 +40,8 @@ spec:
|
||||||
value: <REPLACE-WITH-READ-CONCERN> # Optional.
|
value: <REPLACE-WITH-READ-CONCERN> # Optional.
|
||||||
- name: operationTimeout
|
- name: operationTimeout
|
||||||
value: <REPLACE-WITH-OPERATION-TIMEOUT> # Optional. default: "5s"
|
value: <REPLACE-WITH-OPERATION-TIMEOUT> # Optional. default: "5s"
|
||||||
|
- name: params
|
||||||
|
value: <REPLACE-WITH-ADDITIONAL-PARAMETERS> # Optional. Example: "?authSource=daprStore&ssl=true"
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% alert title="Warning" color="warning" %}}
|
{{% alert title="Warning" color="warning" %}}
|
||||||
|
|
@ -67,9 +69,12 @@ If you wish to use MongoDB as an actor store, append the following to the yaml.
|
||||||
| writeconcern | N | The write concern to use | `"majority"`
|
| writeconcern | N | The write concern to use | `"majority"`
|
||||||
| readconcern | N | The read concern to use | `"majority"`, `"local"`,`"available"`, `"linearizable"`, `"snapshot"`
|
| readconcern | N | The read concern to use | `"majority"`, `"local"`,`"available"`, `"linearizable"`, `"snapshot"`
|
||||||
| operationTimeout | N | The timeout for the operation. Defaults to `"5s"` | `"5s"`
|
| operationTimeout | N | The timeout for the operation. Defaults to `"5s"` | `"5s"`
|
||||||
|
| params | N<sup>**</sup> | Additional parameters to use | `"?authSource=daprStore&ssl=true"`
|
||||||
|
|
||||||
> <sup>[*]</sup> The `server` and `host` fields are mutually exclusive. If neither or both are set, Dapr will return an error.
|
> <sup>[*]</sup> The `server` and `host` fields are mutually exclusive. If neither or both are set, Dapr will return an error.
|
||||||
|
|
||||||
|
> <sup>[**]</sup> The `params` field accepts a query string that specifies connection specific options as `<name>=<value>` pairs, separated by `"&"` and prefixed with `"?"`. e.g. to use "daprStore" db as authentication database and enabling SSL/TLS in connection, specify params as `"?authSource=daprStore&ssl=true"`. See [the mongodb manual](https://docs.mongodb.com/manual/reference/connection-string/#std-label-connections-connection-options) for the list of available options and their use cases.
|
||||||
|
|
||||||
## Setup MongoDB
|
## Setup MongoDB
|
||||||
|
|
||||||
{{< tabs "Self-Hosted" "Kubernetes" >}}
|
{{< tabs "Self-Hosted" "Kubernetes" >}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue