wangmengmeng
2024-12-24 24432a361d5c6bd6f3d8c008693e9f1155d62517
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
server:
  port: 6788
#  port: 6789
spring:
  main:
    allow-bean-definition-overriding: true
  application:
    name: cloud-api-sample
  datasource:
    druid:
      type: com.alibaba.druid.pool.DruidDataSource
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://192.168.1.162:3306/cloud_sample?useSSL=false&allowPublicKeyRetrieval=true
#      url: jdbc:mysql://112.98.126.2:3306/cloud_sample?useSSL=false&allowPublicKeyRetrieval=true
      username: root
      password: 123
      initial-size: 10
      min-idle: 10
      max-active: 20
      max-wait: 60000
 
  redis:
    host: 192.168.1.162
#    host: 112.98.126.2
    port: 6379
    database: 0
    username: # if you enable
    password:
    lettuce:
      pool:
        max-active: 8
        max-idle: 8
        min-idle: 0
 
  servlet:
    multipart:
      max-file-size: 2GB
      max-request-size: 2GB
 
jwt:
  issuer: DJI
  subject: CloudApiSample
  secret: CloudApiSample
  age: 86400
 
mqtt:
  # @see com.dji.sample.component.mqtt.model.MqttUseEnum
  # BASIC parameters are required.
  BASIC:
    protocol: MQTT # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
    host: 111.40.46.199
#    host: 112.98.126.2
#    port: 18830
    port: 1624
    username: admin
    password: w64361881
    client-id: 123456
    # If the protocol is ws/wss, this value is required.
    path:
  DRC:
    protocol: MQTT # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
    host: 111.40.46.199
#    host: 112.98.126.2
#    port: 18830
    port: 1624
    username: admin
    password: w64361881
#    protocol: WS # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
#    host: 192.168.1.162
#    port: 8083
#    path: /mqtt
#    username: admin
#    password: w64361881
 
cloud-sdk:
  mqtt:
    # Topics that need to be subscribed when initially connecting to mqtt, multiple topics are divided by ",".
    inbound-topic: sys/product/+/status,thing/product/+/requests
 
url:
  manage:
    prefix: manage
    version: /api/v1
  map:
    prefix: map
    version: /api/v1
  media:
    prefix: media
    version: /api/v1
  wayline:
    prefix: wayline
    version: /api/v1
  storage:
    prefix: storage
    version: /api/v1
  control:
    prefix: control
    version: /api/v1
 
# Tutorial: https://www.alibabacloud.com/help/en/object-storage-service/latest/use-a-temporary-credential-provided-by-sts-to-access-oss
#oss:
#  enable: false
#  provider: ALIYUN # @see com.dji.sample.component.OssConfiguration.model.enums.OssTypeEnum
#  endpoint: https://oss-cn-hangzhou.aliyuncs.com
#  access-key: Please enter your access key.
#  secret-key: Please enter your secret key.
#  expire: 3600
#  region: Please enter your oss region. # cn-hangzhou
#  role-session-name: cloudApi
#  role-arn: Please enter your role arn. # acs:ram::123456789:role/stsrole
#  bucket: Please enter your bucket name.
#  object-dir-prefix: Please enter a folder name.
 
#oss:
#  enable: true
#  provider: aws
#  endpoint: https://s3.us-east-1.amazonaws.com
#  access-key:
#  secret-key:
#  expire: 3600
#  region: us-east-1
#  role-session-name: cloudApi
#  role-arn:
#  bucket: cloudapi-bucket
#  object-dir-prefix: wayline
 
#oss:
#  enable: true
#  provider: minio
#  endpoint: http://192.168.1.1:9000
#  access-key: wmm
#  secret-key: 12345678
#  bucket: cloud-bucket
#  expire: 3600
#  region: us-east-1
#  object-dir-prefix: wayline
oss:
  enable: true
  provider: minio
#  endpoint: http://192.168.1.162:81
  endpoint: http://111.40.46.199:1623
#  endpoint: http://112.98.126.2:81
  endpoint-spare: http://111.40.46.199:1623
#  endpoint-spare: http://112.98.126.2:81
  access-key: wmm1
  secret-key: 12345678
  bucket: wayline
  expire: 3600
  region: us-east-1
  object-dir-prefix: wayline
 
logging:
  level:
    com.dji: debug
  file:
    name: logs/cloud-api-sample.log
 
ntp:
  server:
    host: 111.40.46.199
    port: 1625
#    port: 123
 
# To create a license for an application: https://developer.dji.com/user/apps/#all
cloud-api:
  app:
    id: 145548
    key: edad69b7994071a776ac53e1e9e3c21
    license: Fi3vQJpjcjvHCVS3GiOjnsNNtM8du6E7kRB2IKTErEwBQeai0COrcXNq2im7Tao1IGs0+nONYNyoPxg/hOxWWJjZWo35XR9d3UL4MuzdLAd12OXpjVlY/pUzrD7WkCwcfzIw20VwtlUmjpXCbYL0cxF6PJSImcxtRoB1HtAf6iU=
 
live:
  rtmpUrl: rtmp://111.40.46.199:1622/live/
#  rtmpUrl: rtmp://112.98.126.2:8080/live/
#livestream:
#  url:
#    # 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
#    agora:
#      channel:
#      token:
#      uid:  654321
#
#    # 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.
#    rtmp:
#      url: Please enter the rtmp access address.  # Example: 'rtmp://192.168.1.1/live/'
#    rtsp:
#      username: Please enter the username.
#      password: Please enter the password.
#      port: 8554
#
#    # 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.
#    gb28181:
#      serverIP: Please enter the server ip.
#      serverPort: Please enter the server port.
#      serverID: Please enter the server id.
#      agentID: Please enter the agent id.
#      agentPassword: Please enter the agent password.
#      localPort: Please enter the local port.
#      channel: Please enter the channel.
#
#    # Webrtc: Only supports using whip standard
#    whip:
#      url: Please enter the rtmp access address. #  Example:http://192.168.1.1:1985/rtc/v1/whip/?app=live&stream=