server:
  port: 6789
spring:
  main:
    allow-bean-definition-overriding: true
  application:
    # name: cloud-api-sample
    name: geoair-api
  datasource:
    druid:
      type: com.alibaba.druid.pool.DruidDataSource
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://geoair_mysql:3306/cloud_sample?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
      # url: jdbc:mysql://cloud_api_sample_mysql:3306/cloud_sample?useSSL=false&allowPublicKeyRetrieval=true
      # 深圳
      # url: jdbc:mysql://cloud_api_sample_mysql:3306/cloud_sample?useSSL=false&allowPublicKeyRetrieval=true
      username: root
      password: root
      initial-size: 10
      min-idle: 10
      max-active: 20
      max-wait: 60000

  redis:
    host: geoair_redis
    # host: cloud_api_sample_redis
    # 深圳
    # host: cloud_api_sample_redis
    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

  # 邮箱
  mail:
    host: smtpdm.aliyun.com      #阿里云发送服务器地址
    port: 25                      #端口号
    username: geofly@stmp-geofly.geotwin.cc         #发送人地址
    # password: ENC(Grg2n2TYzgJv9zpwufsf37ndTe+M1cYk)   #密码
    password: GeoSys2326   #密码

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: 183.11.236.162
    # port: 54418
    # host: 203.186.109.106
    # host: emqx-broker
    # host: 192.168.32.90
    # port: 44418
    host: 203.186.109.106
    port: 54941
    # host: emqx-broker
    # port: 1883
    username: JavaServer
    password: 123456
    client-id: 123456
    # If the protocol is ws/wss, this value is required.
    path:
  DRC:
    # 深圳
    # protocol: WS
    # host: 183.11.236.162
    # port: 54419
    protocol: WSS # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
    # host: emqx-broker
    # host: 192.168.32.90
    # port: 8083
    # host: geofly-dev.geotwin.cc
    host: geofly.geotwin.cc
    port: 443
    path: /mqtt
    username: JavaServer
    password: 123456

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,/ai_info

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: https://gt7-oss.geotwin.cc
  # 深圳
  # endpoint: https://gt-oss-dev.geotwin.cn
  access-key: minioadmin
  secret-key: minioadmin
  bucket: gtfly
  expire: 3600
  region: cn-guangzhou # us-east-1
  object-dir-prefix: wayline

logging:
  level:
    com.dji: debug
  file:
    name: logs/cloud-api-sample.log

ntp:
  server:
    host: Google.mzr.me

# To create a license for an application: https://developer.dji.com/user/apps/#all
cloud-api:
  app:
    id: 163614
    key: 09e2fc9ac2ade8607d07826b3c1a822
    license: fvwK+dVYFBUwxGUxXS3EglmsuTbyFA6400LGuqLrmebHmnhLL9U5DPTI0l4Wu49Xc6fdmNjP6e7ZzHqEhhwloVvhSn4tKMc9wAIsTLlHz1r/j7YbHo5xDX2LHLJOss1e8ud8Gl2lC3gfo9Dsc+qZiCfBX/uIeeZUgk/rR8m1erE=
    # 旧配置
    # id: 158488
    # key: 15e3972c29ef16b9eda5e3415d943d7
    # license: el2GS5tHPIEjXazwGZC1LkIEQ3B43U7uQ9x30ateJAACX1miOSOdjKLn0clBJTLKO3Fd/EnrlNnVwoPOmYvn9K6skalfLgY3bBv5I6sJq0nzaIGpdCHelNA/81GCvb9j1sWdN3adRIk/v5GtmSswauqElmgBGN/r37yp7pi5b5E=
#    id: 158487
#    key: 11de4b6e406e51bf78c75c4cabefe09
#    license: MQzV5RtcqtuZuPlP6MAq0/1xF7gD2ujuN+0tmh+rDzOb7xECeIcRoyGItLcicTGWu3OkunX4XB8/7RcUp5yjyZhyvjHuqhkRDxSwfToidln8mRJ9UvltcSgKRCYCYnR/Oa6u3u0bs2azz20t6zCKmfdAIY0GzHI7YqgmOHowBXU=
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: Please enter the agora channel.
      token: Please enter the agora temporary 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: rtmp://203.186.109.106:44424/live/  # Example: 'rtmp://192.168.1.1/live/'
      # 深圳
      # url: rtmp://183.11.236.162:54424/live/  # 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: 0
      serverID: Please enter the server id.
      agentID: Please enter the agent id.
      agentPassword: Please enter the agent password.
      localPort: 0
      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=
uom:
  # 数据源 Integer
  # 1：无人机系统直报的数据
  # 2：无人机制造商自建的无人机运行服务系统代报的数据
  # 3：无人机机体上加装的单独数据模块代报的数据
  # 4：采集设备采集代报的广播数据
  source: 2
  # 识别信息报送平台
  # 报送平台的名称，如“DJI FLY”
  platform: "GEO FLY"
  # 报送程序版本
  # 程序版本号，以第一次完成报送对接记为“version1.0”，每次升级报送程序累加版本号后缀
  programVersion: "version1.0"
  # 上报平台 API 地址 https://uom.receive.caacic.cn/addFlightRoute
  # url: https://218.189.32.212:8080/addFlightRoute
  url: https://220.232.168.7:8080/addFlightRoute
  appID: GEOSYS
  appKey: geosys_uas
