open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
389 stars 181 forks source link

How to configure the server cluster? #565

Closed tenchong closed 2 years ago

tenchong commented 2 years ago

How to configure the server cluster? The premise is that there are four servers, one for each city, and then the city cannot access the servers in other cities. The four servers can communicate. If different cities are set, audio and video can be exchanged

tenchong commented 2 years ago

Now I take one of the servers as the primary server, and Mongo and rabbitmq of other servers point to the primary server, and then start the service without error. However, when I access one of the servers: 3300 / console, an error is reported

libapi.js:144 GET https://192.168.1.212:3300/services/61736eb0040b474d19981503 401 (Unauthorized)

ManagementApi.send @ libapi.js:144

ManagementApi.getService @ libapi.js:189

checkProfile @ index.js:31

(anonymous) @ index.js: 119

(anonymous) @ index.js: 111

libapi.js:144 GET https://192.168.1.212:3300/v1/rooms?page=0&per_ page=20 401 (Unauthorized)

ManagementApi.send @ libapi.js:144

ManagementApi.getRooms @ libapi.js:161

fetchData @ App.js:1091

value @ react-table.min.js:1

value @ react-table.min.js:1

oj @ react-dom.production.min.js:127

Aj @ react-dom.production.min.js:160

unstable_ runWithPriority @ react.production.min.js:25

Da @ react-dom.production.min.js:60

ab @ react-dom.production.min.js:154

Te @ react-dom.production.min.js:146

Ja @ react-dom.production.min.js:224

md @ react-dom.production.min.js:173

(anonymous) @ react dom. Production. Min.js: 175

Rh @ react-dom.production.min.js:147

nd @ react-dom.production.min.js:175

I.render @ react-dom.production.min.js:238

renderRoom @ App.js:1276

(anonymous) @ app. JS: 1285

Promise.then (asynchronous)

(anonymous) @ app.js: 1284

libapi.js:144 GET https://192.168.1.212:3300/services 401 (Unauthorized)

How to configure it? ths