数据同步服务-语音
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.5 KiB

# ============================================
# 语音数据同步服务 - 外部配置文件
# ============================================
# 【说明】
# 1. 此文件用于部署时覆盖默认配置,无需重新打包 JAR
# 2. 将此文件放在 JAR 包同级目录的 config/ 文件夹下
# 3. 修改此文件后重启服务即可生效
# 4. 每个录音盒的账号密码在 mid_voice_device_config 表中配置
# ============================================
spring:
# ==================== 数据库配置 ====================
datasource:
driver-class-name: com.kingbase8.Driver
url: jdbc:kingbase8://127.0.0.1:54321/kingbase?currentSchema=mid_voice&clientEncoding=utf8
username: dcms_dev
password: your_password_hereq
# ==================== FTP同步配置(单地市部署) ====================
# 【说明】每个地市单独部署本服务,配置只需要写一个地市
ftp-sync:
# 是否启用FTP同步
enabled: true
# 本地临时文件目录
temp-path: ./vaa-ftp-temp
# 文件保留天数
retain-days: 10
# txt文件编码(老系统用GBK)
txt-encoding: GBK
# 字段分隔符(老系统用※)
field-separator: "※"
# OSS 文件上传配置
oss:
base-url: http://127.0.0.1:9090
upload-url: http://127.0.0.1:9090/apiOss/oss/noAuthFileUploadSingle
# 应用编码可以不写
appcode: dataservice-yy
# 应用ID(部署时改为真实值)
appid: your_appid_here
# 应用密钥(部署时改为真实值)
appsecret: your_appsecret_here
# 当前部署的地市FTP配置(每个地市独立部署一份)
cities:
- city-code: "340100"
city-name: "合肥"
ftp-host: 10.126.129.7
ftp-port: 9979
ftp-username: ftpuser
ftp-password: ftppass
ftp-source-dir: /340100/record/
ftp-record-dir: /340100/recordfile/
ftp-archive-dir: /340100/processed/
# 电话区号前缀(处理主被叫号码时去除)
# - 配正确区号:号码以这个区号开头则去除
# - 配不存在的区号(如 "0000"):号码匹配不上,保留原始号码
# - 留空:保留原始号码
# 合肥: 0551, 芜湖: 0553, 蚌埠: 0552, 淮南: 0554, 马鞍山: 0555
# 当前配置 "0000" 表示不去除区号(保留原始号码)
phone-area-code: "0000"
# ==================== 服务端口 ====================
server:
port: 8088
# ==================== 日志配置 ====================
logging:
file:
name: logs/app.log
level:
root: INFO
com.threecloud.dataserviceyy: DEBUG