xieb
2023-09-19 35190a1fbda7ad9b3147810c6f4fa3e3c3829391
环境配置
2 files modified
16 ■■■■ changed files
src/api/http/config.ts 8 ●●●● patch | view | raw | blame | history
src/mqtt/config.ts 8 ●●●● patch | view | raw | blame | history
src/api/http/config.ts
@@ -7,12 +7,12 @@
  // http
  // http://172.16.13.64:8100
  baseURL: 'http://192.168.1.198:6789', // This url must end with "/". Example: 'http://192.168.1.1:6789/'
  // baseURL: 'https://dev.jxpskj.com:36789', // This url must end with "/". Example: 'http://192.168.1.1:6789/'
  // baseURL: 'http://192.168.1.198:6789', // This url must end with "/". Example: 'http://192.168.1.1:6789/'
  baseURL: 'https://dev.jxpskj.com:36789', // This url must end with "/". Example: 'http://192.168.1.1:6789/'
  // ws: 'ws//127.0.0.1:6789/api/v1/ws',
  // ws://192.168.1.198:1883/
  websocketURL: 'ws://192.168.1.198:6789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws'
  // websocketURL: 'wss://dev.jxpskj.com:36789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws'
  // websocketURL: 'ws://192.168.1.198:6789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws'
  websocketURL: 'wss://dev.jxpskj.com:36789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws'
  // livestreaming
  // RTMP  Note: This IP is the address of the streaming server. If you want to see livestream on web page, you need to convert the RTMP stream to WebRTC stream.
src/mqtt/config.ts
@@ -9,9 +9,9 @@
  reconnectPeriod: 10000, // 重连间隔时间: 5s
  keepalive: 1, // 心跳间隔时间:1s
  clientId: 'DroneWeb',
  // username: 'guest',
  // password: 'guest',
  host: '192.168.1.198',
  username: 'root',
  password: 'root',
  host: '182.106.212.58',
  protocol: 'ws',
  port: 8083,
  port: 35675,
}