application-test.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. server:
  2. port: 6789
  3. spring:
  4. main:
  5. allow-bean-definition-overriding: true
  6. application:
  7. name: cloud-api-sample
  8. datasource:
  9. druid:
  10. type: com.alibaba.druid.pool.DruidDataSource
  11. driver-class-name: com.mysql.cj.jdbc.Driver
  12. url: jdbc:mysql://60.204.184.98:33308/dji_uas?useSSL=false&allowPublicKeyRetrieval=true
  13. username: dji_uas
  14. password: AD24cGwazeX5DYeLTaV
  15. initial-size: 10
  16. min-idle: 10
  17. max-active: 20
  18. max-wait: 60000
  19. redis:
  20. host: localhost
  21. port: 6379
  22. database: 0
  23. username: # if you enable
  24. password:
  25. lettuce:
  26. pool:
  27. max-active: 8
  28. max-idle: 8
  29. min-idle: 0
  30. servlet:
  31. multipart:
  32. max-file-size: 2GB
  33. max-request-size: 2GB
  34. jwt:
  35. issuer: DJI
  36. subject: CloudApiSample
  37. secret: CloudApiSample
  38. age: 86400
  39. mqtt:
  40. # @see com.dji.sample.component.mqtt.model.MqttUseEnum
  41. # BASIC parameters are required.
  42. BASIC:
  43. protocol: MQTT # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
  44. host: xia0miduo.gicp.net
  45. port: 1883
  46. username: mqttUser
  47. password: 123456
  48. client-id: testServer
  49. # If the protocol is ws/wss, this value is required.
  50. path:
  51. DRC:
  52. protocol: WS # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
  53. host: xia0miduo.gicp.net
  54. port: 8083
  55. path: /mqtt
  56. username: mqttUser
  57. password: 123456
  58. cloud-sdk:
  59. mqtt:
  60. # Topics that need to be subscribed when initially connecting to mqtt, multiple topics are divided by ",".
  61. inbound-topic: sys/product/+/status,thing/product/+/requests
  62. url:
  63. manage:
  64. prefix: manage
  65. version: /api/v1
  66. map:
  67. prefix: map
  68. version: /api/v1
  69. media:
  70. prefix: media
  71. version: /api/v1
  72. wayline:
  73. prefix: wayline
  74. version: /api/v1
  75. storage:
  76. prefix: storage
  77. version: /api/v1
  78. control:
  79. prefix: control
  80. version: /api/v1
  81. # Tutorial: https://www.alibabacloud.com/help/en/object-storage-service/latest/use-a-temporary-credential-provided-by-sts-to-access-oss
  82. #oss:
  83. # enable: false
  84. # provider: ALIYUN # @see com.dji.sample.component.OssConfiguration.model.enums.OssTypeEnum
  85. # endpoint: https://oss-cn-hangzhou.aliyuncs.com
  86. # access-key: Please enter your access key.
  87. # secret-key: Please enter your secret key.
  88. # expire: 3600
  89. # region: Please enter your oss region. # cn-hangzhou
  90. # role-session-name: cloudApi
  91. # role-arn: Please enter your role arn. # acs:ram::123456789:role/stsrole
  92. # bucket: Please enter your bucket name.
  93. # object-dir-prefix: Please enter a folder name.
  94. #oss:
  95. # enable: true
  96. # provider: aws
  97. # endpoint: https://s3.us-east-1.amazonaws.com
  98. # access-key:
  99. # secret-key:
  100. # expire: 3600
  101. # region: us-east-1
  102. # role-session-name: cloudApi
  103. # role-arn:
  104. # bucket: cloudapi-bucket
  105. # object-dir-prefix: wayline
  106. oss:
  107. enable: true
  108. provider: minio
  109. endpoint: http://60.204.184.98:39000
  110. access-key: dji_minio2
  111. secret-key: 12345678
  112. bucket: dji-cloudapi
  113. expire: 3600
  114. region: us-east-1
  115. object-dir-prefix: wayline
  116. logging:
  117. level:
  118. com.dji: info
  119. file:
  120. name: logs/cloud-api-sample.log
  121. ntp:
  122. server:
  123. host: Google.mzr.me
  124. # To create a license for an application: https://developer.dji.com/user/apps/#all
  125. cloud-api:
  126. app:
  127. id: 146815
  128. key: 7c9e9108f2ddcbab32d2b508f452151
  129. license: ZK7Dzih4Qc9JCZhDiyDsWJwTW+1rhnnzT1SqDxbdSPVV24bbDC4r1KNjXo7tIPBnPne7ipnXeefP0lJ0OHvxMpkKiag5lFCIndKSvYYdQkyScT3dahCXjmYsd0YyWyHj4tvXoR2DRVq1PdBHLB1iUo2FGLCIZ8QHbGyqglyGdHY=
  130. livestream:
  131. url:
  132. # It is recommended to use a program to create Token. https://github.com/AgoraIO/Tools/blob/master/DynamicKey/AgoraDynamicKey/java/src/main/java/io/agora/media/RtcTokenBuilder2.java
  133. agora:
  134. channel: Please enter the agora channel.
  135. token: Please enter the agora temporary token.
  136. uid: 654321
  137. # 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.
  138. rtmp:
  139. url: Please enter the rtmp access address. # Example: 'rtmp://192.168.1.1/live/'
  140. rtsp:
  141. username: Please enter the username.
  142. password: Please enter the password.
  143. port: 8554
  144. # GB28181 Note:If you don't know what these parameters mean, you can go to Pilot2 and select the GB28181 page in the cloud platform. Where the parameters same as these parameters.
  145. # gb28181:
  146. # serverIP: Please enter the server ip.
  147. # serverPort: Please enter the server port.
  148. # serverID: Please enter the server id.
  149. # agentID: Please enter the agent id.
  150. # agentPassword: Please enter the agent password.
  151. # localPort: Please enter the local port.
  152. # channel: Please enter the channel.
  153. # Webrtc: Only supports using whip standard
  154. whip:
  155. url: Please enter the rtmp access address. # Example:http://192.168.1.1:1985/rtc/v1/whip/?app=live&stream=