rain
2024-08-21 2db1aa88e8ab53096a936163d686b90d8e056a99
src/main/resources/application.yml
@@ -1,67 +1,24 @@
server:
  port: 6789
spring:
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
  application:
    name: cloud-api-sample
  datasource:
    druid:
      type: com.alibaba.druid.pool.DruidDataSource
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://172.16.13.129:3306/cloud_sample?useSSL=false&allowPublicKeyRetrieval=true
      username: root
      password: 123456
      initial-size: 10
      min-idle: 10
      max-active: 20
      max-wait: 60000
  redis:
    host: 127.0.0.1
    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: 182.106.212.58
    port: 31883
    username: root
    password: root
#    host: 127.0.0.1
#    port: 1883
#    username: guest
#    password: guest
    client-id: aix123456
    # If the protocol is ws/wss, this value is required.
    path:
    # Topics that need to be subscribed when initially connecting to mqtt, multiple topics are divided by ",".
#    inbound-topic: sys/product/+/status,thing/product/+/requests
    inbound-topic: sys/product/+/status,thing/product/+/requests
  DRC:
    protocol: WS # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
    host: 182.106.212.58
    port: 15675
    path: /ws
url:
  manage:
@@ -81,6 +38,15 @@
    version: /api/v1
  control:
    prefix: /control
    version: /api/v1
  patches:
    prefix: /patches
    version: /api/v1
  summarize:
    prefix: /summarize
    version: /api/v1
  speak:
    prefix: /speak
    version: /api/v1
# Tutorial: https://www.alibabacloud.com/help/en/object-storage-service/latest/use-a-temporary-credential-provided-by-sts-to-access-oss
@@ -110,20 +76,6 @@
#  bucket: cloudapi-bucket
#  object-dir-prefix: wayline
oss:
  enable: true
  provider: minio
#  endpoint: http://172.16.13.129:9000
#  access-key: admin
#  secret-key: 12345678
  endpoint: http://dev.jxpskj.com:9000
  access-key: pskj
  secret-key: pskj@2021
  bucket: cloud-bucket
  expire: 3600
  region: us-east-1
  object-dir-prefix: wayline
logging:
  level:
    com.dji.sample: debug
@@ -132,7 +84,7 @@
ntp:
  server:
    host: Google.mzr.me
    host: ntp.ntsc.ac.cn
# To create a license for an application: https://developer.dji.com/user/apps/#all
cloud-api: