application.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # 启动端口号
  2. server:
  3. port: 8000
  4. # websocket url
  5. websocket:
  6. ws-url: ws://localhost:8000/ws?uid=server&to_uid=client
  7. # MySQL数据源配置
  8. sqlite:
  9. url: ./db/confrontation-training.db
  10. # 图片路径配置
  11. upload:
  12. savePath: ./files/
  13. accessUrl: http://localhost:8000/file/
  14. # JWT配置
  15. jwt:
  16. signingKey: z3d6k8v0n3w7m9sa1fd0u09h
  17. # 定时任务
  18. cron:
  19. enable: true
  20. #蓝牙网关地址
  21. gateway:
  22. baseUrl: http://192.168.2.254
  23. scanUrl: /gap/nodes?active=1&event=1&filter_name=BW-ECG*,MIND*&chip=1
  24. connUrl: /gap/nodes/MAC/connection?chip
  25. notifyUrl: /gatt/nodes?event=1
  26. writeDataUrl: /gatt/nodes/MAC/handle/32/value/DATA
  27. openChannel: /gatt/nodes/MAC/handle/36/value/0100
  28. disconnectUrl: /gap/nodes/MAC/connection
  29. scanSecond: 20000 #蓝牙数据推送时间间隔
  30. connectedList: /gap/nodes?connection_state=connected
  31. #日志系统
  32. log2file:
  33. filePath: ./logs/
  34. fileName: confrontation_training
  35. fileSuffix: .log
  36. #第一次打开
  37. param:
  38. firstOpen : 1
  39. emq:
  40. protocol: tcp
  41. port: 1883
  42. topic:
  43. # - /EE3870DA24C4/connect_packet/hds_subscribe
  44. # - /EE3870DA24C4/connect_packet/connect3_subscribe
  45. # - /EE3870DA24C4/connect_packet/connect1_subscribe
  46. # - /EE3870DA24C4/connect_packet/cfg_param_subscribe
  47. # - /EE3870DA24C4/connect_packet/connect2_subscribe
  48. # - /EE3870DA24C4/connect_packet/connect4_subscribe
  49. - /connect_packet/connect1_publish
  50. userName: admin
  51. password: 28d75ca0e70eb0ef0b42ae7bb7843e82d6fdffa2509caa383dd46748bdbf8dd8
  52. clientId: emqClientCT
  53. qos: 0
  54. broker: emqx@127.0.0.1
  55. filter:
  56. - MIND
  57. - BW-ECG
  58. gatewayMac: