diff options
author | Valery Piashchynski <[email protected]> | 2022-10-23 22:52:22 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-10-23 22:52:22 +0200 |
commit | 3e7be12359d6aa37163e278b0c756e0883d0ebdf (patch) | |
tree | dd2269c32f473ed143d2fb31213f425f56b5b4ad /schemas | |
parent | c923e64c815cb69c6b9e408a78cfebfdf7dce5ea (diff) |
chore: remove broadcast and websockets from the configuration
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'schemas')
-rw-r--r-- | schemas/config/2.0.schema.json | 64 |
1 files changed, 1 insertions, 63 deletions
diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json index df28442e..15428c84 100644 --- a/schemas/config/2.0.schema.json +++ b/schemas/config/2.0.schema.json @@ -440,7 +440,6 @@ "headers", "gzip", "static", - "websockets", "sendfile", "http_metrics", "cache", @@ -1080,71 +1079,10 @@ ] }, "redis": { - "description": "Redis section. Should be defined to use as a broadcast driver for the websockets (with no limitation to use in other plugins).", + "description": "Redis section.", "type": "object", "$ref": "#/definitions/Redis" }, - "websockets": { - "description": "Websockets plugin, HTTP middleware", - "type": "object", - "properties": { - "broker": { - "type": "string", - "pattern": "^[a-zA-Z0-9._-]+$", - "description": "Broker to use. Brokers can be set in the broadcast plugin. For example, if you use broker: default here, broadcast plugin should have default broker in its config." - }, - "allowed_origin": { - "type": "string", - "description": " Allowed request origin (single value). This option is optional (allowed all by default)", - "default": "*" - }, - "path": { - "type": "string", - "description": "http path where to handle websockets connections", - "default": "/ws" - } - } - }, - "broadcast": { - "description": " Broadcast plugin. It main purpose is to broadcast published messages via all brokers. Use it in conjunction with the websockets, memory and redis plugins. LIMITATION: DO NOT use the same redis connection within different sections or messages will be duplicated. There is no limitation to use different redis connections (ie localhost:6379, localhost:6378, etc) in different sections.", - "type": "object", - "minProperties": 1, - "patternProperties": { - "^[a-zA-Z0-9._-]+$": { - "description": "Driver configuration sections", - "type": "object", - "properties": { - "driver": { - "description": "Driver to use. Available drivers: redis, memory. In-memory driver does not require any configuration.", - "type": "string", - "enum": [ - "memory", - "redis" - ] - }, - "config": { - "description": "Driver configuration", - "type": "object", - "allOf": [ - { - "description": "In-memory configuration", - "type": "object", - "properties": {} - }, - { - "type": "object", - "$ref": "#/definitions/Redis" - } - ] - } - }, - "required": [ - "driver", - "config" - ] - } - } - }, "metrics": { "description": "Application metrics in Prometheus format (docs: https://roadrunner.dev/docs/beep-beep-metrics)", "type": "object", |