application.yml 5.1 KB

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