mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-16 12:16:16 +01:00
Reapply "Fix wrong memorystore nats schema"
This reverts commit ea7660ddb3.
This commit is contained in:
@@ -51,35 +51,41 @@ const configSchema = `{
|
|||||||
},
|
},
|
||||||
"nats": {
|
"nats": {
|
||||||
"description": "Configuration for accepting published data through NATS.",
|
"description": "Configuration for accepting published data through NATS.",
|
||||||
"type": "object",
|
"type": "array",
|
||||||
"properties": {
|
"items": {
|
||||||
"address": {
|
"type": "object",
|
||||||
"description": "Address of the NATS server.",
|
"properties": {
|
||||||
"type": "string"
|
"address": {
|
||||||
},
|
"description": "Address of the NATS server.",
|
||||||
"username": {
|
"type": "string"
|
||||||
"description": "Optional: If configured with username/password method.",
|
},
|
||||||
"type": "string"
|
"username": {
|
||||||
},
|
"description": "Optional: If configured with username/password method.",
|
||||||
"password": {
|
"type": "string"
|
||||||
"description": "Optional: If configured with username/password method.",
|
},
|
||||||
"type": "string"
|
"password": {
|
||||||
},
|
"description": "Optional: If configured with username/password method.",
|
||||||
"creds-file-path": {
|
"type": "string"
|
||||||
"description": "Optional: If configured with Credential File method. Path to your NATS cred file.",
|
},
|
||||||
"type": "string"
|
"creds-file-path": {
|
||||||
},
|
"description": "Optional: If configured with Credential File method. Path to your NATS cred file.",
|
||||||
"subscriptions": {
|
"type": "string"
|
||||||
"description": "Array of various subscriptions. Allows to subscibe to different subjects and publishers.",
|
},
|
||||||
"type": "object",
|
"subscriptions": {
|
||||||
"properties": {
|
"description": "Array of various subscriptions. Allows to subscibe to different subjects and publishers.",
|
||||||
"subscribe-to": {
|
"type": "array",
|
||||||
"description": "Channel name",
|
"items": {
|
||||||
"type": "string"
|
"type": "object",
|
||||||
},
|
"properties": {
|
||||||
"cluster-tag": {
|
"subscribe-to": {
|
||||||
"description": "Optional: Allow lines without a cluster tag, use this as default",
|
"description": "Channel name",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"cluster-tag": {
|
||||||
|
"description": "Optional: Allow lines without a cluster tag, use this as default",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user