mx_datav_gs/mxdata_v-system/target/classes/application-prd.yml

137 lines
4.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 开发环境配置
server:
# 服务器的HTTP端口默认为8080
port: 16002
servlet:
# 应用的访问路径
context-path: /
undertow:
io-threads: 16
worker-threads: 256
buffer-size: 1024
buffers-per-region: 1024
direct-buffers: true
# 项目相关配置
mxDataV:
# 名称
name: mxDataV
# 版本
version: 1.0.0
# 版权年份
copyrightYear: 2020
# 实例演示开关
demoEnabled: true
# 文件路径 示例( Windows配置D:/mx/uploadPathLinux配置 /home/mx/uploadPath
#/Users/mingyanglee/logs/mx/uploadPath
# profile: /home/projects/chongqing/mx/uploadPath/upload/202112
profile: /home/mxdatav_gs/uploadPath/
# 获取ip地址开关
addressEnabled: true
# redis 配置
spring:
#Mysql
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://21.76.128.3:3306/mx-datav-gansu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
username: root
password: EK+f7WE15vc4yQzyJf974FlDbL6EBxbeGkDo4wLjwhB6PWDKtPEQI0ulbnWknKe+wzoFWbGjF0Mwp533fWqWUw==
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username:
login-password:
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
filters: config
connection-properties: config.decrypt=true
logging:
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} %clr(%5p) %clr([%15.15t]){cyan} %clr(%X{__traceId}){magenta} %clr(%-40.40logger{39}){blue} %clr(:) %m%n"
level:
com.alonginfo.project: debug
redis:
# 地址
# host: 39.96.27.4
host: 21.76.128.4
# 端口默认为6379
port: 6379
# 密码
#password: zGSPX@7837
password: JxDYpu0EO6w+xfFtzGeUPA==
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
#对接交易平台环境标识
env:
key: prd
#甘肃电力交易平台相关配置
sgcc:
uploadPath: /home/along/
videoPath: /home/video/
publicKey: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCeCzY9bdSYp/Ju6S8MROkQaCeuvj2OYSMCGF6B+jmNKIM2W/n7nAUJyUet7Owsg8y1YZIxryHUoxABJYiZADb7mqNhirVzPL8uBvH9pRX0VP/AstTKVcjdWNXTtGZJozfEJT9xdNt1LSVyBWRL+3eQZVdzGqvUzmi35CGdDiBYGwIDAQAB
#信息披露服务地址
informationAddress: http://25.215.196.215/px-settlement-infpubgrid-lz
#交易公告上传路径
notice:
filePath: /home/mxdatav_gs/notice/
market:
filePath: /home/mxdatav_gs/notice/market/