Add MongoDB flavor variable to configuration options

This commit is contained in:
Cédric Verstraeten
2026-05-26 12:58:57 +00:00
parent ea5705c03c
commit 8ce56a0fbd
3 changed files with 8 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ Below all configuration options and parameters are listed.
| `mongodb.username` | MongoDB user account, we are using in the hub installation `'root'`. | `"yourusername"` |
| `mongodb.password` | MongoDB user password, by default `'yourmongodbpassword'` | `"yourpassword"` |
| `mongodb.retryWrites` | Enable or disable MongoDB retryable writes. | `"true"` |
| `mongodb.flavor` | Backend engine flavor: `"mongodb"` (native MongoDB / Atlas) or `"documentdb"` (AWS DocumentDB). The `documentdb` flavor disables features DocumentDB does not support (geospatial queries/indexes, complex `$lookup` pipelines). When set to `documentdb`, also set `mongodb.retryWrites: "false"`. | `"mongodb"` |
| `mqtt.host` | MQTT (Vernemq) hostname. | `"mqtt.yourdomain.com"` |
| `mqtt.port` | MQTT (Vernemq) port for WSS (secure sockets), by default `'8443'`. | `"8443"` |
| `mqtt.protocol` | MQTT (Vernemq) protocol, by default `'wss'`. | `"wss"` |

View File

@@ -11,4 +11,5 @@ data:
MONGODB_USERNAME: "{{ .Values.mongodb.username }}"
MONGODB_PASSWORD: "{{ .Values.mongodb.password }}"
MONGODB_RETRY_WRITES: "{{ .Values.mongodb.retryWrites }}"
MONGODB_FLAVOR: "{{ .Values.mongodb.flavor | default "mongodb" }}"
MONGODB_DATABASE_CLOUD: "Kerberos"

View File

@@ -54,6 +54,12 @@ mongodb:
username: yourusername
password: "yourpassword"
retryWrites: "true"
# Backend engine flavor. Use "mongodb" for native MongoDB / Atlas (default)
# or "documentdb" for AWS DocumentDB. The "documentdb" flavor makes the
# hub-api disable features DocumentDB does not support (geospatial queries
# and indexes, complex $lookup pipelines, etc.). When using DocumentDB you
# should also set retryWrites: "false".
flavor: "mongodb"
###################################################
# MQTT configuration (bi-directional communication)
###################################################