sean.zhou
2022-03-22 4c4e2d4b916ccc5291b70eff0a3f3fa2ff92f3fe
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
server:
  port: 6789
spring:
  application:
    name: cloud-api-sample
  datasource:
    druid:
      type: com.alibaba.druid.pool.DruidDataSource
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://localhost:3306/cloud_sample?useSSL=false
      username: root
      password: root
      initial-size: 10
      min-idle: 10
      max-active: 20
      max-wait: 60000
 
  jackson:
    property-naming-strategy: SNAKE_CASE
    date-format: yyyy-MM-dd HH:mm:ss
    default-property-inclusion: NON_NULL
    deserialization:
      FAIL_ON_UNKNOWN_PROPERTIES: false
 
jwt:
  issuer: DJI
  subject: CloudApiSample
  secret: CloudApiSample
  age: 86400
 
mqtt:
  protocol: tcp
  host: Please enter your IP. # Example: 192.168.1.1
  port: 1883
  username: JavaServer
  password: 123456
  client-id: 123456
  # Topics that need to be subscribed when initially connecting to mqtt, multiple topics are divided by ",".
  inbound-topic: sys/product/+/status
 
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
 
# Tutorial: https://help.aliyun.com/document_detail/100624.htm?spm=a2c4g.11186623.0.0.74075e34eIhK7T#concept-xzh-nzk-2gb
aliyun:
  oss:
    enable: true
    endpoint: Please enter your endpoint. # Example: https://oss-cn-shenzhen.aliyuncs.com
    access-key: Please enter your access key.
    secret-key: Please enter your secret key.
    expire: 3600
    region: Please enter oss region.    # Example: cn-shenzhen
    role-session-name: Please enter session name.   # A custom role session name to distinguish the different tokens, for example it could be filled in as SessionTest.
    role-arn: Please enter role ARN.    # Example: acs:ram::123456789:role/oss
    bucket: Please enter bucket name.   
    object-dir-prefix: Please enter object prefix.
 
# MinIO is temporarily unavailable.
minio:
  enable: false
  endpoint: Please enter your endpoint. #http://192.168.1.1:9000/
  access-key: minioadmin
  secret-key: minioadmin
  bucket: Please enter bucket name.
  expire: 3600
  region: Please enter minio region.
  object-dir-prefix: Please enter object prefix.
 
logging:
  level:
    com.dji.sample: debug
  file:
    name: logs/cloud-api-sample.log