You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| enable | boolean | No | false | Whether to enable cascade client |
91
99
| server | string | Yes | - | Upper-level server address (IP:port) |
92
100
| secret | string | No | - | Connection secret for authentication |
93
101
| autopush | boolean | No | false | Whether to automatically push streams to upper-level node |
94
-
| relayapi.enable | boolean | No | false | Whether to enable API forwarding functionality |
95
-
| relayapi.whitelist | string array | No | [] | IP address whitelist for access |
102
+
| onsub.pull | string | No | - | Regex pattern for streams to pull on subscription |
103
+
| relayapi.allow | string array | No | [] | Allowed IP addresses/networks for access |
104
+
| relayapi.deny | string array | No | [] | Denied IP addresses/networks for access |
96
105
97
106
## Deployment Architecture Examples
98
107
@@ -109,15 +118,16 @@ Configuration example:
109
118
110
119
**Upper Node Configuration:**
111
120
```yaml
112
-
cascade-server:
121
+
cascadeserver:
113
122
quic:
114
123
listenaddr: ":44944"
115
124
autoregister: true
116
125
```
117
126
118
127
**Lower Node Configuration:**
119
128
```yaml
120
-
cascade-client:
129
+
cascadeclient:
130
+
enable: true
121
131
server: "192.168.1.100:44944"
122
132
autopush: true
123
133
```
@@ -140,17 +150,17 @@ Headquarters Node (HQ)
140
150
141
151
When a lower-level node is configured with `autopush: true`, all streams published to the lower-level node will be automatically forwarded to the upper-level node.
142
152
143
-
#### Manual Pull
153
+
#### On-demand Pull
144
154
145
-
Lower-level nodes can also pull specific streams from upper-level nodes:
155
+
Lower-level nodes can also configure regex patterns to automatically pull specific streams from upper-level nodes when they are subscribed to:
146
156
147
157
```yaml
148
-
cascade-client:
158
+
cascadeclient:
159
+
enable: true
149
160
server: "192.168.1.100:44944"
150
-
# Configure pull rules
151
-
pull:
152
-
- streampath: "live/camera1"
153
-
pullurl: "cascade://live/camera1"
161
+
# Configure on-demand pull rules using regex patterns
162
+
onsub:
163
+
pull: "live/.*"# Pull any stream matching this pattern when subscribed
154
164
```
155
165
156
166
### API Forwarding
@@ -236,7 +246,8 @@ curl -X POST http://server:8080/api/cascade/clients \
0 commit comments