提交 80860dfa authored 作者: chenshiying's avatar chenshiying

[新增] 配置修改

上级 46ffc934
<?xml version="1.0" encoding="UTF-8"?>
<!--
以外部载入指定logback.xml java -jar -Dlogging.config=logback.xml
scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true。
scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒当scan为true时,此属性生效。默认的时间间隔为1分钟。
debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。
-->
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 定义日志文件的项目名 -->
<springProperty scope="context" name="applicationName" source="spring.application.name"/>
<!-- 定义日志文件的存储地址,默认jar同级目录logs文件夹,如需更改路径加参数: -Dlogging.path=/var/logs 没有设定直接在将日志存放到jar同级目录logs下 -->
<property name="logPath" value="${logging.path:-./logs}"/>
<!-- 定义日志归档大小 单位KB,MB,GB 默认200MB 如需更改大小加参数: -Dlogging.maxFileSize=200MB -->
<property name="maxFileSize" value="${logging.maxFileSize:-200MB}"/>
<!-- 定义日志最多保留天数 默认保留天数60天,如需更改加参数 -Dlogging.maxHistory=60-->
<property name="maxHistory" value="${logging.maxHistory:-60}"/>
<!-- 定义日志最大总大小 默认40GB,如需更改加参数 -Dlogging.totalSizeCap=40GB-->
<property name="totalSizeCap" value="${logging.totalSizeCap:-40GB}"/>
<property name="appName" value="${applicationName}"/>
<!-- 定义日志格式-->
<!--格式化输出:开通已[%d{yyyy-MM-dd HH:mm:ss.SSS}] 为了logstash使用grok遇到堆栈多行异常时匹配合并多行, %d表示日期,${APP_ANME}表示服务名, %thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%ex:堆栈信息 %n是换行符-->
<property name="CONSOLE_LOG_PATTERN" value="[%d{yyyy-MM-dd HH:mm:ss.SSS}] ${appName} [%X{reqType} %X{hostIp} %X{hostPort} %X{reqUri} %X{queryString} ] [userId:%X{userId}] [%thread] %-5level %logger - %msg%n"/>
<!--输出到控制台-->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<!-- 输出到文件-->
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logPath}/${appName}.log</file>
<append>true</append>
<!--基于大小以及时间的轮转策略 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!--日志文件输出的文件名 %d表示按天轮转 %i表示在当前时间还没有到达周期轮转之前,日志文件达到了 maxFileSize 指定的大小,会进行归档,递增索引从 0 开始-->
<fileNamePattern>${logPath}/${appName}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<!-- maxFileSize 指定的大小进行归档-->
<maxFileSize>${maxFileSize}</maxFileSize>
<!--这个可选的属性用来控制最多保留多少数量的归档文件,将会异步删除旧的文件 当天按天轮转表示有效期60天-->
<maxHistory>${maxHistory}</maxHistory>
<!--当达到这个大小后,旧的归档文件将会被异步的删除 -->
<totalSizeCap>${totalSizeCap}</totalSizeCap>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder>
</appender>
<!-- DEBUG、ERROR、TRACE -->
<!-- <logger name="com.loit" level="TRACE" />
<logger name="cn.springcloud.gray" level="ERROR" />
<logger name="org.springframework" level="DEBUG" />
<logger name="org.springframework.cloud.gateway.route" level="ERROR" />
<logger name="com.alibaba.nacos" level="ERROR" />
<logger name="sun.net.www" level="ERROR" />
<logger name="javax.management.mbeanserver" level="ERROR" />
<logger name="reactor.netty.channel" level="ERROR" />
<logger name="org.apache.skywalking.apm" level="ERROR" /> -->
<!-- <logger name="com.loit.modules.sys.dao" level="DEBUG" />
<logger name="com.loit.modules.duty.dao" level="DEBUG" />
<logger name="com.loit.modules.sys.security" level="DEBUG" />
<logger name="com.loit.modules.duty.web" level="DEBUG" />
<logger name="com.loit.modules.othersystem" level="DEBUG" /> -->
<logger name="com.alibaba.nacos" level="ERROR" />
<!-- 日志输出级别 ERROR\INFO\DEBUG\TRACE-->
<logger name="com.loit.modules.sys.dao" level="DEBUG" />
<logger name="com.loit.modules.duty.dao" level="DEBUG" />
<logger name="com.loit.modules.sys.security" level="DEBUG" />
<logger name="com.loit.modules.duty.web" level="DEBUG" />
<logger name="com.loit.modules.othersystem" level="DEBUG" />
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="FILE"/>
</root>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
以外部载入指定logback.xml java -jar -Dlogging.config=logback.xml
scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true。
scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒当scan为true时,此属性生效。默认的时间间隔为1分钟。
debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。
-->
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 定义日志文件的项目名 -->
<springProperty scope="context" name="applicationName" source="spring.application.name"/>
<!-- 定义日志文件的存储地址,默认jar同级目录logs文件夹,如需更改路径加参数: -Dlogging.path=/var/logs 没有设定直接在将日志存放到jar同级目录logs下 -->
<property name="logPath" value="${logging.path:-./logs}"/>
<!-- 定义日志归档大小 单位KB,MB,GB 默认200MB 如需更改大小加参数: -Dlogging.maxFileSize=200MB -->
<property name="maxFileSize" value="${logging.maxFileSize:-200MB}"/>
<!-- 定义日志最多保留天数 默认保留天数60天,如需更改加参数 -Dlogging.maxHistory=60-->
<property name="maxHistory" value="${logging.maxHistory:-60}"/>
<!-- 定义日志最大总大小 默认40GB,如需更改加参数 -Dlogging.totalSizeCap=40GB-->
<property name="totalSizeCap" value="${logging.totalSizeCap:-40GB}"/>
<property name="appName" value="${applicationName}"/>
<!-- 定义日志格式-->
<!--格式化输出:开通已[%d{yyyy-MM-dd HH:mm:ss.SSS}] 为了logstash使用grok遇到堆栈多行异常时匹配合并多行, %d表示日期,${APP_ANME}表示服务名, %thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%ex:堆栈信息 %n是换行符-->
<property name="CONSOLE_LOG_PATTERN" value="[%d{yyyy-MM-dd HH:mm:ss.SSS}] ${appName} [%X{reqType} %X{hostIp} %X{hostPort} %X{reqUri} %X{queryString} ] [userId:%X{userId}] [%thread] %-5level %logger - %msg%n"/>
<!--输出到控制台-->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<!-- 输出到文件-->
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logPath}/${appName}.log</file>
<append>true</append>
<!--基于大小以及时间的轮转策略 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!--日志文件输出的文件名 %d表示按天轮转 %i表示在当前时间还没有到达周期轮转之前,日志文件达到了 maxFileSize 指定的大小,会进行归档,递增索引从 0 开始-->
<fileNamePattern>${logPath}/${appName}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<!-- maxFileSize 指定的大小进行归档-->
<maxFileSize>${maxFileSize}</maxFileSize>
<!--这个可选的属性用来控制最多保留多少数量的归档文件,将会异步删除旧的文件 当天按天轮转表示有效期60天-->
<maxHistory>${maxHistory}</maxHistory>
<!--当达到这个大小后,旧的归档文件将会被异步的删除 -->
<totalSizeCap>${totalSizeCap}</totalSizeCap>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder>
</appender>
<!-- DEBUG、ERROR、TRACE -->
<!-- <logger name="com.loit" level="TRACE" />
<logger name="cn.springcloud.gray" level="ERROR" />
<logger name="org.springframework" level="DEBUG" />
<logger name="org.springframework.cloud.gateway.route" level="ERROR" />
<logger name="com.alibaba.nacos" level="ERROR" />
<logger name="sun.net.www" level="ERROR" />
<logger name="javax.management.mbeanserver" level="ERROR" />
<logger name="reactor.netty.channel" level="ERROR" />
<logger name="org.apache.skywalking.apm" level="ERROR" /> -->
<logger name="com.loit.modules.sys.dao" level="DEBUG" />
<logger name="com.loit.modules.duty.dao" level="DEBUG" />
<logger name="com.loit.modules.sys.security" level="DEBUG" />
<logger name="com.loit.modules.duty.web" level="DEBUG" />
<logger name="com.loit.modules.othersystem" level="DEBUG" />
<logger name="com.alibaba.nacos" level="DEBUG" />
<!-- 日志输出级别 ERROR\INFO\DEBUG\TRACE-->
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="FILE"/>
</root>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
以外部载入指定logback.xml java -jar -Dlogging.config=logback.xml
scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true。
scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒当scan为true时,此属性生效。默认的时间间隔为1分钟。
debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。
-->
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 定义日志文件的项目名 -->
<springProperty scope="context" name="applicationName" source="spring.application.name"/>
<!-- 定义日志文件的存储地址,默认jar同级目录logs文件夹,如需更改路径加参数: -Dlogging.path=/var/logs 没有设定直接在将日志存放到jar同级目录logs下 -->
<property name="logPath" value="${logging.path:-./logs}"/>
<!-- 定义日志归档大小 单位KB,MB,GB 默认200MB 如需更改大小加参数: -Dlogging.maxFileSize=200MB -->
<property name="maxFileSize" value="${logging.maxFileSize:-200MB}"/>
<!-- 定义日志最多保留天数 默认保留天数60天,如需更改加参数 -Dlogging.maxHistory=60-->
<property name="maxHistory" value="${logging.maxHistory:-60}"/>
<!-- 定义日志最大总大小 默认40GB,如需更改加参数 -Dlogging.totalSizeCap=40GB-->
<property name="totalSizeCap" value="${logging.totalSizeCap:-40GB}"/>
<property name="appName" value="${applicationName}"/>
<!-- 定义日志格式-->
<!--格式化输出:开通已[%d{yyyy-MM-dd HH:mm:ss.SSS}] 为了logstash使用grok遇到堆栈多行异常时匹配合并多行, %d表示日期,${APP_ANME}表示服务名, %thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%ex:堆栈信息 %n是换行符-->
<property name="CONSOLE_LOG_PATTERN" value="[%d{yyyy-MM-dd HH:mm:ss.SSS}] ${appName} [%X{reqType} %X{hostIp} %X{hostPort} %X{reqUri} %X{queryString} ] [userId:%X{userId}] [%thread] %-5level %logger - %msg%n"/>
<!--输出到控制台-->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<!-- 输出到文件-->
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logPath}/${appName}.log</file>
<append>true</append>
<!--基于大小以及时间的轮转策略 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!--日志文件输出的文件名 %d表示按天轮转 %i表示在当前时间还没有到达周期轮转之前,日志文件达到了 maxFileSize 指定的大小,会进行归档,递增索引从 0 开始-->
<fileNamePattern>${logPath}/${appName}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<!-- maxFileSize 指定的大小进行归档-->
<maxFileSize>${maxFileSize}</maxFileSize>
<!--这个可选的属性用来控制最多保留多少数量的归档文件,将会异步删除旧的文件 当天按天轮转表示有效期60天-->
<maxHistory>${maxHistory}</maxHistory>
<!--当达到这个大小后,旧的归档文件将会被异步的删除 -->
<totalSizeCap>${totalSizeCap}</totalSizeCap>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder>
</appender>
<!-- DEBUG、ERROR、TRACE -->
<!-- <logger name="com.loit" level="TRACE" />
<logger name="cn.springcloud.gray" level="ERROR" />
<logger name="org.springframework" level="DEBUG" />
<logger name="org.springframework.cloud.gateway.route" level="ERROR" />
<logger name="sun.net.www" level="ERROR" />
<logger name="javax.management.mbeanserver" level="ERROR" />
<logger name="reactor.netty.channel" level="ERROR" />
<logger name="org.apache.skywalking.apm" level="ERROR" /> -->
<logger name="com.alibaba.nacos" level="ERROR" />
<!-- 日志输出级别 ERROR\INFO\DEBUG\TRACE-->
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="FILE"/>
</root>
</configuration>
\ No newline at end of file
server:
port: 8769
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 20000
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
spring:
application:
name: loit-admin-server
main:
allow-bean-definition-overriding: true
cloud:
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
#权限配置
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
info:
name: '@project.name@'
#日志配置
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-duty-report
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#Mysql 数据源
datasource:
url: jdbc:mysql://192.168.224.141:3306/loit_duty_report?useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: eAFP579j6u9Gq8HWUmMOEM6k+3y/jYBt9c93TyRrQqexodHgW7ZKkFi0bjsbledZWj7q3JUvUZL3XKkKJIX0OA==
publickey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALVb4EsQaLkbACA9Ep+m4Tayyvw5yMntqPB9tY7kMyGK0XjbZr5yV42rV5e9ZHFwyJ451tjSOO3MfiKKZ+MdTLcCAwEAAQ==
driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 500
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打开PSCache,并且指定每个连接上PSCache的大小(Oracle使用)
#poolPreparedStatements: true
#maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
filters: stat,wall,config
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
connectionProperties:
druid:
stat:
mergeSql: true
slowSqlMillis: 3000
config:
decrypt: true
# redis 数据库
redis:
database: 1
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.modules
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.v1
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash-duty-report.xml
fastdfs:
file_server_prefix: http://172.26.66.33/fileview/
# 图标文件上传
fileUpload:
uploadDir: /home/data/storage/data
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
report:
dataPath: http://192.169.200.153:8822
weeksMonthsYearsReport:
h5Url: http://172.26.66.33/mobilePortalH5/dist/m_index.html#/report
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-duty-report
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#Mysql 数据源
datasource:
url: jdbc:mysql://192.168.225.193:3306/loit_duty_report?useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: WUnB88RdOvel9bPFqmeI9GRpixwuOieArK8IffvhS+gj6qZddGUhmfxt6F/hYAd47Ne9C8ggsaTrV5KyimMU6A==
publickey: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALa00YpbgMV4H+ho/uP7NTPxxsOweGD8OzeOsp0kxz2GGkb0uW/gmGqGBQZtHdFUNg5IYQJmWTuzA3Pos9feM6sCAwEAAQ==
driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 500
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打开PSCache,并且指定每个连接上PSCache的大小(Oracle使用)
#poolPreparedStatements: true
#maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
filters: stat,wall,config
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
connectionProperties:
druid:
stat:
mergeSql: true
slowSqlMillis: 3000
config:
decrypt: true
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.modules
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.v1
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
fastdfs:
file_server_prefix: http://172.26.66.33/fileview/
# 图标文件上传
fileUpload:
uploadDir: /home/data/storage/data
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
report:
dataPath: http://192.169.200.153:8822
# 生产环境
#权限配置
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
info:
name: '@project.name@'
description: '@project.description@'
fastdfs:
file_server_prefix: http://172.26.66.33/fileview/
file_server_prefix2: http://110.43.204.182/fileview/
max_storage_connection: 200
connect_timeout_in_seconds: 5
network_timeout_in_seconds: 30
charset: UTF-8
http_anti_steal_token: false
http_secret_key: FastDFS1234567890
http_tracker_http_port: 8888
tracker_servers: 10.0.120.218:22122,10.0.120.193:22122
#fdfs:
# connect-timeout: 6000
# pool:
# jmx-name-base: 1
# jmx-name-prefix: 1
# max-wait-millis: 500
# so-timeout: 6000
# thumb-image:
# height: 150
# width: 150
# tracker-list:
# - 39.100.254.140:22122
#pool:
# max-total: 153
server:
tomcat:
basedir: /var/www/tomcat/temp
spring:
application:
name: loit-file
main:
allow-bean-definition-overriding: true
# freemarker:
# allow-request-override: false
# allow-session-override: false
# cache: false
# charset: UTF-8
# check-template-location: true
# content-type: text/html
# enabled: true
# expose-request-attributes: true
# expose-session-attributes: true
# expose-spring-macro-helpers: true
# order: 1
# prefer-file-system-access: true
# request-context-attribute: request
# settings:
# classic_compatible: true
# datetime_format: yyyy-MM-dd HH:mm:ss
# default_encoding: UTF-8
# number_format: 0.##########
# template_exception_handler: ignore
# template_update_delay: 0
# suffix: .ftl
# template-loader-path: classpath:/templates/
http:
multipart:
maxFileSize: 2048mb
maxRequestSize: 2048mb
redis:
database: 0
password: portal2019
pool:
max-active: 1
max-idle: 8
max-wait: 20000
min-idle: 8
timeout: 20000
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
servlet:
multipart:
max-file-size: 2048MB
max-request-size: 2048MB
cloud:
nacos:
discovery:
#Nacos 注册中心地址
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
data-type: json
# 规则类型 降级
rule-type: degrade
zwup:
maxSize: 102400
# 断路器设置
feign:
sentinel:
enabled: true
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
loit:
ks:
endpoint: ks3-cn-beijing.ksyun.com # 金山云外网地址
endpoint2: ks3-external-cn-shanghai-2.bj-gov-cloud.com # 金山云内网地址
accessKeyId: AKLT-2HvvoAzSDa_cmopsR67qw # 金山云key
accessKeyId2: AKLTemazcLd1TdGuc-jOVWHKOA # 金山云key(内网)
accessKeySecret: OG7L3NalShIRMxcfpCu2yLui/ZQ7v2ah3x1uVd3f1hqQFc0eSLa/v0jLNOKYq8WYrQ== # 金山云秘钥
accessKeySecret2: OCaj4r6mL29jNMyhjSS8qkANwSS/MkKQTs8lULtaO6p2HtuiKsqv8pz4oV119P9KYA== # 金山云秘钥(内网)
\ No newline at end of file
server:
# 启用gzip压缩响应数据
compression:
enabled: true
# 2KB以上的数据都会压缩
min-response-size: 2048
mime-types: application/json,application/xml,text/html,text/plain,text/css,application/x-javascript
# 应用名称
spring:
application:
name: loit-general-config-form
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#mysql 数据源
datasource:
url: jdbc:mysql://10.0.120.185:3306/loit_dform_zhxc?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: M#v861zxa_PO
driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
es:
host: 192.168.225.189
post: 9200
scheme: http
space_index: ledger_inspection_object_zf
search_index: ledger_responsible_subject_zf
#互联网区百度接口调用
baiduAPI:
path: http://192.168.177.27:8181
#勤务报备系统(督察获取勤务报备相关的接口时)
dutyReport:
path: http://39.98.202.173:7069
# 转发
cgsdInspector:
path: http://101.200.184.12:7082
#督查统计(顾世龙)
dutyStatisics:
path: http://101.200.184.12:7082
#大数据接口
statisticApi:
path: http://10.0.120.217:8141
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
\ No newline at end of file
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-inspection
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.243:9099/D_FORM_GCONFIG
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
genid:
switch: true #是否开启分布式ID拦截,默认为false,不启动请手动代码方式设置主键值,启用时代码无需设置主键值,有拦截器设置主键值,此时如果主键值已设置,拦截器也会使用业务开发人员设置的值,不会对其重新赋值
type: leaf #目前支持leaf,uuid 分布式ID
leaf:
initdata: true #如果使用leaf,初始化数据开关是会遍历所连接的数据下所有表,表的第一列存储是数字类型的,会将取该列的最大值+1作为max_id,
step: 1000 #每次从中取1000个存放到内存,并发高时可将此值设置大点,如服务器1:1-1000 服务器2 1001-2000
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 综合巡查检查单系统
gConfigPatrol:
path: http://127.0.0.1:9006/
#签章服务器配置
Stamp:
ip: 223.70.139.221
port: 18002
pdfBasePath: /home/gconfigpdf/
#单位是毫秒,默认为 50 秒
timeout: 10000
#互联网区百度接口调用
# 正式
baiduAPI:
path: http://192.168.177.27:8181
# 测试
#baiduAPI:
# path: http://120.27.92.213:8181
# 文件上传
file:
uploadUrl: http://39.99.158.58:7001/api-file/api/file/order/upload
# 定时任务开关
scheduling:
enabled: false
\ No newline at end of file
# 端口
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 20000
#权限配置
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
info:
name: '@project.name@'
description: '@project.description@'
spring:
application:
name: loit-getway
main:
allow-bean-definition-overriding: true
cloud:
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
metadata:
management:
context-path: /actuator
gateway:
discovery: #是否与服务发现组件进行结合,通过 serviceId(必须设置成大写) 转发到具体的服务实例。默认为false,设为true便开启通过服务中心的自动根据 serviceId 创建路由的功能。
locator: #路由访问方式:http://Gateway_HOST:Gateway_PORT/大写的serviceId/**,其中微服务应用名默认大写访问。
enabled: true
lowerCaseServiceId: true
#解决跨域问题
globalcors:
corsConfigurations:
'[/**]':
# 允许携带认证信息
allow-credentials: true
# 允许跨域的源(网站域名/ip),设置*为全部
allowedOrigins: "*"
# 允许跨域的method, 默认为GET和OPTIONS,设置*为全部
allowedMethods: "*"
# 允许跨域请求里的head字段,设置*为全部
allowedHeaders: "*"
#解决双重跨域 RETAIN_FIRST RETAIN_LAST RETAIN_UNIQUE
default-filters:
- DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials, RETAIN_FIRST
routes:
- id: loit-portal
uri: lb://loit-portal
predicates:
- Path=/api-portal/**
filters:
- StripPrefix=1
logoutSign: true
- id: loit-notice
uri: lb://loit-notice
predicates:
- Path=/api-notice/**
filters:
- StripPrefix=1
- id: loit-file
uri: lb://loit-file
predicates:
- Path=/api-file/**
filters:
- StripPrefix=1
- id: loit-law
uri: lb://loit-law
predicates:
- Path=/api-law/**
filters:
- StripPrefix=1
- id: loit-form
uri: lb://loit-form
predicates:
- Path=/api-form/**
filters:
- StripPrefix=1
- id: loit-admin-server
uri: lb://loit-admin-server
predicates:
- Path=/api-admin/**
filters:
- StripPrefix=1
- id: loit-cas-server
uri: lb://loit-cas-server
predicates:
- Path=/loit-cas/**
filters:
- StripPrefix=1
casServerSign: true
- id: loit-gray-server
uri: lb://loit-gray-server
predicates:
- Path=/api-gray-server/**
filters:
- StripPrefix=1
- id: loit-version
uri: lb://loit-version
predicates:
- Path=/api-version/**
filters:
- StripPrefix=1
- id: loit-general-config
uri: lb://loit-general-config
predicates:
- Path=/api-general-config/**
filters:
- StripPrefix=1
- id: loit-sj-ledger
uri: lb://loit-sj-ledger
predicates:
- Path=/api-sj-ledger/**
filters:
- StripPrefix=1
- id: loit-sj-coordinator
uri: lb://loit-sj-coordinator
predicates:
- Path=/api-sj-coordinator/**
filters:
- StripPrefix=1
- id: loit-sj-task
uri: lb://loit-sj-task
predicates:
- Path=/api-sj-task/**
filters:
- StripPrefix=1
- id: loit-sj-cmdsystem
uri: lb://loit-sj-cmdsystem
predicates:
- Path=/api-sj-cmdsystem/**
filters:
- StripPrefix=1
- id: loit-sj-supervision
uri: lb://loit-sj-supervision
predicates:
- Path=/api-sj-supervision/**
filters:
- StripPrefix=1
- id: loit-sj-large-screen
uri: lb://loit-sj-large-screen
predicates:
- Path=/api-sj-large-screen/**
filters:
- StripPrefix=1
- id: loit-mobile-portal
uri: lb://loit-mobile-portal
predicates:
- Path=/api-mobile-portal/**
filters:
- StripPrefix=1
- id: loit-web-portal
uri: lb://loit-web-portal
predicates:
- Path=/api-web-portal/**
filters:
- StripPrefix=1
- id: loit-sj-loitworkflow
uri: lb://loit-sj-loitworkflow
predicates:
- Path=/api-sj-loitworkflow/**
filters:
- StripPrefix=1
- id: loit-sj-enforce
uri: lb://loit-sj-enforce
predicates:
- Path=/api-sj-enforce/**
filters:
- StripPrefix=1
- id: loit-sj-cmdvideo
uri: lb://loit-sj-cmdvideo
predicates:
- Path=/api-sj-cmdvideo/**
filters:
- StripPrefix=1
- id: loit-duty-report
uri: lb://loit-duty-report
predicates:
- Path=/api-duty-report/**
filters:
- StripPrefix=1
- id: loit-duty-report-read
uri: lb://loit-duty-report-read
predicates:
- Path=/api-duty-report-read/**
filters:
- StripPrefix=1
- id: loit-mychainx
uri: lb://loit-mychainx
predicates:
- Path=/api-mychainx/**
filters:
- StripPrefix=1
- id: loit-sj-knowledge
uri: lb://loit-sj-knowledge
predicates:
- Path=/api-sj-knowledge/**
filters:
- StripPrefix=1
- id: loit-general-config-form
uri: lb://loit-general-config-form
predicates:
- Path=/api-general-config-form/**
filters:
- StripPrefix=1
- id: loit-sj-dataassets
uri: lb://loit-sj-dataassets
predicates:
- Path=/api-sj-dataassets/**
filters:
- StripPrefix=1
- id: loit-sj-dataassets-bda
uri: lb://loit-sj-dataassets-bda
predicates:
- Path=/api-sj-dataassets-bda/**
filters:
- StripPrefix=1
- id: loit-sj-oversee
uri: lb://loit-sj-oversee
predicates:
- Path=/api-sj-oversee/**
filters:
- StripPrefix=1
- id: loit-sj-analysis
uri: lb://loit-sj-analysis
predicates:
- Path=/api-sj-analysis/**
filters:
- StripPrefix=1
- id: loit-sj-inspection
uri: lb://loit-sj-inspection
predicates:
- Path=/api-sj-inspection/**
filters:
- StripPrefix=1
- id: loit-sj-faceboxes
uri: lb://loit-sj-faceboxes
predicates:
- Path=/api-sj-faceboxes/**
filters:
- StripPrefix=1
httpclient:
max-header-size: 65565
sentinel:
# Sentinel 网关限流规则配置文件
datasource.ds1.nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
data-id: ${spring.application.name}-sentinel-gateway
data-type: json
group-id: DEFAULT_GROUP
# 规则类型 限流配置
ruleType: gw-flow
# Sentinel 网关限流API分组定义配置文件
datasource.ds2.nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
data-id: ${spring.application.name}-sentinel-api
data-type: json
group-id: DEFAULT_GROUP
# 规则类型 API分组
ruleType: gw-api-group
# Sentinel 网关降级规则配置
datasource.ds3.nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
data-id: ${spring.application.name}-degrade-rules
data-type: json
group-id: DEFAULT_GROUP
# 规则类型 降级
ruleType: degrade
# ## 应用与Sentinel控制台交互的端口,应用本地会起一个该端口占用的HttpServer
# transport:
# ## Sentinel 控制台地址
# dashboard: 121.196.16.86:8052
# ## 应用与Sentinel控制台的心跳间隔时间
# heartbeat-interval-ms: 60000
filter:
enabled: true
scg.fallback:
## Spring Cloud Gateway 熔断后的响应模式(选择 redirect or response)
mode: response
## Spring Cloud Gateway 响应模式为 'response' 模式对应的响应码
response-status: 200
content-type: application/json
## Spring Cloud Gateway 响应模式为 'response' 模式对应的响应内容
response-body: '{"success":false,"code":"444","msg":"系统繁忙请稍后再试"}'
scg:
order: -100
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
# 单点登录配置
loit:
cas:
gateway:
resource_auth: false #true表示进行资源权限校验,false表示不进行资源权限校验
login_auth: false #true表示进行登录校验,false表示不进行登录校验
kill_seconds: 1800
swagger_close: false #true表示关闭swagger,不配置此项或者为false表示不屏蔽swagger
gateway_debug_out: true
swagger:
basePackage: com.loit,cn.springcloud.gray
#放行路径
auth-skip:
#服务黑名单(待开发)
dataworks-servers:
- api-portal
#无需获取用户信息的服务
no-user-servers:
- /loit-cas/**
#无需获取用户信息的uri
no-user-uri:
- /image/**
- /static/**
#通用放行请求(所有服务的这类请求都会放行)
common-uri:
- /api/v1/applicationManage/getCurrentUserAppMenu
- /api/v1/actRight/getActRightByMenuId
- /api/v1/person/getCurretUser
- /api/v1/notice/**
- /api/v1/noticeReceive/**
- /api/v1/message/**
- /api/v1/messageReceive/**
- /api/v1/online/user/count
- /api/v1/person/getCurretUser
- /api/v1/themeManage/**
- /api/v1/skinManage
- /api/v1/actRight/getActRightByMenuId
- /api/v1/online/users
- /api/v1/rightShortCut/listApplicationByUserId
- /api/v1/resourceType/list
- /api/v1/contextConfig/list
- /api/v1/resourceOperation/list
- /api-general-config-form/**
#服务放行路径,针对某一个服务需要放行的请求
api-urls:
#portal模块测试与生产环境放行接口
- /api-portal/api/v1/feign/dict/**
- /api-portal/cas/**
- /api-portal/api/v1/cas/**
- /api-portal/image/**
- /api-portal/api/v1/dictData/**
- /api-portal/actuator/**
- /api-portal/actuator/health
- /api-portal/api/v1/open/oauth/**
- /api-portal/api/v1/code/**
#portal模块开发放行接口
- /api-portal/api/v1/person/setCookie/**
- /api-portal/api/v1/open/person/orgPersonList/**
- /api-portal/login.html
- /api-portal/static/**
- /api-portal/api/v1/feign/org/treeList
- /api-portal/api/v1/app/login
- /api-portal/websocket
#Case单点登录放行接口
- /loit-cas/cas/**
#swagger开发测试放行接口
- /*/swagger-ui.html
- /*/swagger-resources/**
- /*/v2/api-docs
- /*/webjars/springfox-swagger-ui/**
#file模块
#- /v1/datasetshare
#- /health
#移动门户生产环境放行接口
- /api-mobile-portal/api/v1/my/spareUpdate
- /api-mobile-portal/api/v1/asset/check
#勤务报备生产环境放行接口
- /api-duty-report/othersystem/debug/**
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
## 测试环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 20000
# 应用名称
spring:
application:
name: loit-gray-server
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 分组
#group: DEFAULT_GROUP
#Mysql 数据源
datasource:
url: jdbc:mysql://10.0.120.44:7063/loit_gray_test?useUnicode=true&allowMultiQueries=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: loit2019ABC
driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 10
minIdle: 10
maxActive: 200
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.v1
mapperLocations: classpath*:mapper/**/*.xml
loit:
# 单点登录配置
portal_service_name: api-portal #网关中门户路由path
portal_service_id: loit-portal #网关中门户路由id
cas_service_name: loit-cas #网关中单点登录路由path
cas_service_id: loit-cas-server #网关中单点登录路由id
swagger:
basePackage: com.loit.v1
portal:
index_redirect_config:
jenkins:
maps:
net1: http://10.0.120.26:12012@@1156ddb265bc6ec3c190a17d74735d8f28 #政务网 jenkins地址@@token
net2: http://192.168.188.15:12012@@11eb77e9cdda37fa642b028c5d7c65dd4c #互联网 jenkins地址@@token
try:
count: 5 # 定时器1分钟一次,设置重试次数
version:
sync:
url: http://loit-version/api/v1/deploy/pushInfo #版本管理系统同步接口地址
env: 2 # 生产环境:2,准生产环境:1
gray:
telnet_client: true #是否开启前端实例telnet检测,默认为false
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
# uri: redis://portal2019@10.0.120.55:6379/0
uri: redis-sentinel://portal2019@10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
\ No newline at end of file
# 标准化管理系统生产环境配置文件
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-law
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#mysql 数据源
datasource:
url: jdbc:mysql://192.169.200.175:7063/loit-law-dev?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: loit2019ABC
driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.v1
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
fastdfs:
file_server_prefix: http://172.26.66.33/fileview/
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 图标文件上传
fileUpload:
uploadDir: /home/data/storage/data
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-mobile-portal
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
######################### 人大金仓数据库配置 #######################################
datasource:
url: jdbc:kingbase8://10.0.120.100:9099/LOITPORTAL_7007
username: LOITPORTALUSER
password: loitQAZ#$%
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath:**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
check:
tip1: 正在读取手机号,请稍后...
tip2: 执法城管通号不存在
tip3: 当前输入的身份信息不匹配,请检查输入是否正确,如果正确请联系人事部门进行核对
tip4: 当前SIM1卡非本人城管通号,请核实本人城管通号是否插入SIM1卡槽中
tip5: 您的设备未在平台中注册,请联系管理员进行注册
tip6: 您的设备已被其他城管通号绑定
tip7: 您的城管通号已在其他设备上绑定
tip8: 校验失败
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
qrCode:
path: /home/soft/loit-mobile-portal-8116/qrCode
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
ledger:
# 获取token的接口地址,默认http://loit-sj-ledger/oauth/token,相同可不配置
token-endpoint-uri: http://loit-sj-ledger/oauth/token
app:
# 是否启用依赖中已实现的token client自动获取token,true为启用
enabled: true
# 应用客户端 app-id
app-id: client-a
# 应用客户端 app-secret
app-secret: client-a-p
unicode: 83878569955819929600
fastdfs:
file_server_prefix: http://172.26.66.33/fileview/
file_server_prefix2: http://110.43.204.182/fileview/
\ No newline at end of file
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-mychainx
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.100:9099/MYCHAINX
username: MYCHAINXUSER
password: loitERT@WS
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 60000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.mychainx
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.mychainx
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
prePath: prod/
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 20000
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
spring:
application:
name: loit-notice
main:
allow-bean-definition-overriding: true
cloud:
nacos:
discovery:
# Nacos 注册中心地址
#server-addr: 10.0.120.221:80
server-addr: 192.169.201.174:80
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
metadata:
management:
context-path: /actuator
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
data-type: json
# 规则类型 降级
rule-type: degrade
servlet:
multipart:
max-file-size: 30MB
max-request-size: 30MB
messages:
encoding: UTF-8
banner:
charset: UTF-8
devtools:
restart:
enabled: true
cache:
type: ehcache
ehcache:
config: classpath:config/ehcache.xml
# datasource:
# url: jdbc:mysql://10.0.120.44:7063/loitnotice_5003?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
# type: com.alibaba.druid.pool.DruidDataSource
# username: root
# password: loit2019ABC
# driver-class-name: com.mysql.cj.jdbc.Driver
# initialSize: 5
# minIdle: 5
# maxActive: 20
# maxWait: 60000
# timeBetweenEvictionRunsMillis: 60000
# minEvictableIdleTimeMillis: 300000
# validationQuery: SELECT 1
######################### 人大金仓数据库配置 #######################################
datasource:
url: jdbc:kingbase8://10.0.120.100:9099/NOTICE_5003
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
thymeleaf:
cache: false
enabled: false
suffix: .html
jackson:
time-zone: GMT+8
redis:
database: 7
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
# activemq:
# broker-url: tcp://localhost:61616
# user: admin
# password: admin
resources:
static-locations: classpath:/templates/
data:
elasticsearch:
cluster-name: elasticsearch
cluster-nodes: 10.0.120.212:9200,10.0.120.44:9200,10.0.120.143:9200
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit
mapperLocations: classpath*:mapper/**/*.xml
#security:
# basic:
# enabled: false
management:
security:
enabled: false
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
info:
name: '@project.name@'
# 断路器设置
feign:
sentinel:
enabled: true
# 图标文件上传
fileUpload:
uploadDir: /home/soft/loit-notice-5003/img/
# 单点登录配置
loit:
swagger:
basePackage: com.loit.v1
genid:
switch: true #是否开启分布式ID
type: leaf #目前支持leaf,uuid 分布式ID
leaf:
initdata: true #如果使用leaf,初始化数据开关是会遍历所连接的数据下所有表,表的第一列存储是数字类型的,会将取该列的最大值+1作为max_id,
step: 20 #每次从中取1000个存放到内存,并发高时可将此值设置大点,如服务器1:1-1000 服务器2 1001-2000
notice:
notice_send_type: #消息推送,空只推pc; 2:pc和极光; 3:pc和华为;4:pc和小米;
client_id: MTAzOTc0MjE1 #应用id
client_secret: OWQ1MDBmNWIwNTNmMTI1MTc4Y2M4ZjBkMGJjNjFmYTRhMDY5MDkxZmFkYWJhMDdiMzM3N2VkOTNhZDA0YmFjMQ== #秘钥
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash-error.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 门户生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 20000
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
max-http-header-size: 65546
spring:
application:
name: loit-portal
main:
allow-bean-definition-overriding: true
cloud:
nacos:
discovery:
# Nacos 注册中心地址
# server-addr: 10.0.120.221:8848
server-addr: 192.169.201.174:80
#ip: 10.0.120.195
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
metadata:
management:
context-path: /actuator
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
data-type: json
# 规则类型 降级
rule-type: degrade
# ## 应用与Sentinel控制台交互的端口,应用本地会起一个该端口占用的HttpServer
# transport:
# ## Sentinel 控制台地址
# dashboard: localhost:8090
# ## 应用与Sentinel控制台的心跳间隔时间
# heartbeat-interval-ms: 10000
# port: 8719
# filter:
# enabled: true
servlet:
multipart:
max-file-size: 30MB
max-request-size: 30MB
messages:
encoding: UTF-8
banner:
charset: UTF-8
devtools:
restart:
enabled: true
cache:
type: redis # redis/ehcache, 目前实现这两种缓存框架,如果不想使用redis,请改成ehcache
ehcache:
config: classpath:config/ehcache.xml
# datasource:
# url: jdbc:mysql://10.0.120.44:7063/loitportal_7007?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
# type: com.alibaba.druid.pool.DruidDataSource
# username: root
# password: loit2019ABC
# driver-class-name: com.mysql.cj.jdbc.Driver
# initialSize: 5
# minIdle: 5
# maxActive: 20
# maxWait: 60000
# timeBetweenEvictionRunsMillis: 60000
# minEvictableIdleTimeMillis: 300000
# validationQuery: SELECT 1
######################### 人大金仓数据库配置 #######################################
datasource:
url: jdbc:kingbase8://10.0.120.100:9099/LOITPORTAL_7007
username: SYSTEM
password: loit2019ABC
initialSize: 50
minIdle: 50
maxActive: 100
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
mail:
host: smtp.163.com
port: 25
username: zhanlangxinxin@163.com
password: 123456
default-encoding: UTF-8
subject: 集成门户系统审计警告
thymeleaf:
cache: false
enabled: false
suffix: .html
jackson:
time-zone: GMT+8
redis:
database: 0
# host: 127.0.0.1
# port: 6379
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
resources:
static-locations: classpath:/templates/
activemq:
in-memory: true
packages:
trust-all: true
kafka:
bootstrap-servers: 39.98.202.173:9092,39.98.202.173:9093,39.98.202.173:9094
producer:
batch-size: 16384
buffer-memory: 33554432
retries: 0
acks: 1
consumer:
group-id: portal
enable-auto-commit: false
auto-commit-interval: 100
auto-offset-reset: earliest
max-poll-records: 2
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit
mapperLocations: classpath*:mapper/**/*.xml
session:
sessionTimeout: 1800000
sessionTimeoutClean: 120000
security:
basic:
enabled: false
management:
security:
enabled: false
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
info:
name: '@project.name@'
# 图标文件上传
fileUpload:
uploadDir: /usr/portal/
#极光配置
jpush:
appKey: 2c50bed0c8645184391dc374
masterSecret: cf04eaeab932d64dcad2c61e
liveTime: 86400 #消息在JPush服务器的失效时间 24 * 60 * 60
apnsProduction: false #是否生成环境,true表示生成环境
# 单点登录配置
loit:
portal_service_name: api-portal #网关中门户路由path
portal_service_id: loit-portal #网关中门户路由id
cas_service_name: loit-cas #网关中单点登录路由path
cas_service_id: loit-cas-server #网关中单点登录路由id
cas_cluster: true
# cas_server_url: #如果是第三方接入时需配置
# gate_way_url: #如果是第三方接入时需配置
genid:
switch: true #是否开启分布式ID拦截,默认为false,不启动请手动代码方式设置主键值,启用时代码无需设置主键值,有拦截器设置主键值,此时如果主键值已设置,拦截器也会使用业务开发人员设置的值,不会对其重新赋值
type: leaf #目前支持leaf,uuid 分布式ID
leaf:
initdata: true #如果使用leaf,初始化数据开关是会遍历所连接的数据下所有表,表的第一列存储是数字类型的,会将取该列的最大值+1作为max_id,
step: 20 #每次从中取1000个存放到内存,并发高时可将此值设置大点,如服务器1:1-1000 服务器2 1001-2000
cas:
app:
client_url: http://172.26.66.33/dist/#/
client_url2: http://110.43.204.182/dist/#/
client_id: portal
client_secret: portal
access_token_cookie_tim_out: 43200
resource_auth: false
login_auth: true
captchaSwitch: false #验证开关,没有配置默认不开启验证,生产环境请开启
forwards:
- kibana-http://39.100.254.140:5601/app/kibana#/dev_tools/console?_g=()
- rammonitor-http://39.100.254.140:3000/d/49QxVubWz/cpu_he-nei-cun?fullscreen&panelId=4&refresh=5s
- cpumonitor-http://39.100.254.140:3000/d/49QxVubWz/cpu_he-nei-cun?refresh=5s&fullscreen&panelId=2
- wallboard-http://39.100.254.140:8769/#/wallboard
- trace-http://39.100.254.140:12000/trace
- nacosRe-http://39.100.254.140:8103/nacos/#/serviceManagement?namespace=
- nacosCon-http://39.100.254.140:8103/nacos/#/configurationManagement?dataId=&group=&appName=&namespace=
online_user_outtime: 60
login_debug_out: true
loginlog: 1 #是否记录登陆日志,1:记录日志;其余不记录
loggingLevel: INFO #使用LoitLog日志输出,日志级别 TRACE,DEBUG,INFO,WARN,ERROR
swagger:
basePackage: com.loit.modules.baseData,com.loit.modules.sys,com.loit.v1
portal:
index_redirect_config: #用于判断首页登录跳转的逻辑 ,默认为空(1)空值:前端跳转;(2)1:从数据库中获取资源配置等信息,根据规则拼接进行跳转。
indexUrlConf: 1 #用于判断返回url的规则信息 (1)前端上下文是否是门户的上下文。 (2)当前appId是内嵌还是独立系统。
vue_default_url: /dist/# #前端需要配置的地址
#白名单地址
frontwhite:
url:
- http://110.43.204.182
- http://192.169.201.191
- http://172.26.66.33
# 以下是优化开关,默认未开启优化,测试通过后在将其复制到生产环境中
optimize:
switch:
#web进入应用优化开关
fistload: true
# 断路器设置
feign:
sentinel:
enabled: true
client:
config:
default:
connect-timeout: 20000
read-timeout: 20000
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
scan:
url: http://192.168.230.18:13001
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
#超级管理员免登陆验证信息
login:
isProduct: 1
key: 123456
\ No newline at end of file
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-analysis
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
#namespace: 8d4dca07-5ce9-48cc-9566-aaa753bae937
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.252:9099/AY_ANALYSIS
username: ANALYSISUSER
password: loit!QA@#$
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
appCode: cmdsystem
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-cmdsystem
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.243:9099/CS_CMD_SYSTEM
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# 发送邮箱配置
mail:
#host: 通道个人邮箱和企业邮箱通道不同。163的个人邮箱:smtp.163.com ,企业邮箱:smtp.qiye.163.com
# 腾讯的,个人smtp.qq.com, 企业的:smtp.exmail.qq.com
host: smtp.163.com
username: bjcg_zhzx@163.com
# 口令,授权STM后得到的口令
password: ALVMCAFNVCWSNYVJ
default-encoding: UTF-8
properties:
mail:
smtp:
auth: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
port: 465
# 开启debug,方便查看邮件发送日志
debug: false
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
ledger:
#获取token的接口地址
token-endpoint-uri: http://loit-sj-ledger/oauth/token
app:
#是否启用依赖中以实现的token,client自动获取token。true为启用
enabled: true
#应用客户端 app-id
app-id: client-a
#应用客户端 app-secret
app-secret: client-a-p
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
servlet:
context-path: /
# 应用名称
spring:
application:
name: loit-sj-coordinator
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.146:9099/CD_COORDINATOR
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
serialization:
write-dates-as-timestamps: true
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
article:
resourceUrl: /dist/p_index.html#/strike/article/task
articleSourceUrl: /dist/p_index.html#/strike/article/source
articleCheckUrl: /dist/p_index.html#/strike/article/task
articleCheckInfoUrl: /strike/article/task/sign
articleApprovalInfoUrl: /strike/article/check/detail
articleApprovalUrl: /dist/p_index.html#/strike/article/check
articleStrackUrl: /dist/p_index.html#/strike/article/track
value: article
linkName: 苗志成
linkMobile: 18911712520
linkPhone: 68522586
clue:
resourceUrl: /dist/p_index.html#/strike/clue/task
value: clue
clueSignUrl: /dist/p_index.html#/strike/clue/sign
clueSourceUrl: /dist/p_index.html#/strike/clue/source
clueApprovalUrl: /dist/p_index.html#/strike/clue/check
clueTaskUrl: /dist/p_index.html#/strike/clue/task
clueTrackUrl: /dist/p_index.html#/strike/clue/track
linkName: 苗志成
linkMobile: 18911712520
linkPhone: 68522586
text:
law:
resourceUrl: /dist/p_index.html#/union/linkage/task
lawSourceUrl: /dist/p_index.html#/union/linkage/source
lawCheckInfoUrl: /union/linkage/task/sign
lawApprovalInfoUrl: /union/linkage/check/detail
lawCheckUrl: /dist/p_index.html#/union/linkage/task
lawApprovalUrl: /dist/p_index.html#/union/linkage/check
lawStrackUrl: /dist/p_index.html#/union/linkage/track
value: law
linkName: 苗志成
linkMobile: 18911712520
linkPhone: 68522586
#案件移送
case:
value: /#/taskModule/caseTransfer/transferAuditList
name: 案件移送
#行刑连接
url:
value: /#/taskModule/executeCohese/coheseAuditList
name: 行刑衔接
cdLoit:
sj:
appCode: coordinator
wbjCode: WBJ_CODE
superOrgExtCode: 0FEA6AA3C03549B191501CA6F6765D18
index:
aj_type_1: aj_type_1
aj_type_2: aj_type_2
aj_type_3: aj_type_3
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
\ No newline at end of file
# 应用名称
spring:
application:
name: loit-sj-dataSynchronize
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
######################### 人大金仓数据库配置 #######################################
datasource:
url: jdbc:kingbase8://10.0.120.100:9099/LOITPORTAL_7007
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.modules
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
# ca数据同步地址
idm:
service: http://172.26.80.120/idm
userId: 93ce5274575740e994a0c458488ce9db
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-dataassets-bda
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#Mysql 数据源
datasource:
url: jdbc:mysql://10.0.120.246:3306/sjzcml?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
type: com.alibaba.druid.pool.DruidDataSource
username: sjzcml
password: Db*ASus!NJla
driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-dataassets
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.100:9099/DA_DATAASSETS
username: DATAASSETSUSER
password: loit2009!QA
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-enforce
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.100:9099/EF_ENFORCE
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
# host: 127.0.0.1
# port: 6379
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
kafka:
# Kafka集群
#bootstrap-servers: 192.168.224.143:9092,192.168.224.144:9092,192.168.224.145:9092
#bootstrap-servers: 172.16.50.194:9092
bootstrap-servers: 39.98.202.173:9092,39.98.202.173:9093,39.98.202.173:9094
# 消费端监听的topic不存在时,项目启动会报错(关掉)
listener:
missing-topics-fatal: false
producer:
retries: 0
# 应答级别:多少个分区副本备份完成时向生产者发送ack确认(可选0、1、all/-1)
acks: 1
# 当生产端积累的消息达到batch-size或接收到消息linger.ms后,生产者就会将消息提交给kafka
# linger.ms为0表示每接收到一条消息就提交给kafka,这时候batch-size其实就没用了
batch-size: 16384
# 提交延时
properties:
# 自定义分区器
#class: com.felix.kafka.producer.CustomizePartitioner
linger:
ms: 0
buffer-memory: 33554432
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
consumer:
properties:
group:
id: dutyReport
session:
timeout:
ms: 120000
# 是否自动提交offset
enable-auto-commit: true
# 提交offset延时(接收到消息后多久提交offset)
auto-commit-interval: 1000
# 当kafka中没有初始offset或offset超出范围时将自动重置offset
# earliest:重置为分区中最小的offset;
# latest:重置为分区中最新的offset(消费分区中新产生的数据);
# none:只要有一个分区不存在已提交的offset,就抛出异常;
auto-offset-reset: latest
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
justice:
commonCase: common-case
simpleCase: simple-case
creadit:
commonCase: credit-report
push_back: JG_JGXW_PUNISH_ACTION_TOPIC
supervise:
commonCase: jgxw-punish-action
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.modules.*.entity
mapperLocations: classpath*:com/loit/modules/*/dao/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
swagger:
basePackage: com.loit.modules,com.loit.api.controller
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
posyspath: d:/lic/
dutyReport:
url: http://39.98.202.173:7069
ledger:
token-endpoint-uri: http://loit-sj-ledger/oauth/token
app:
enabled: true
app-id: client-a
app-secret: client-a-p
ledgerUnicode:
person: 83877181750667264000
business: 83877197706638540800
selfemploye: 83877323086968012800
#信用北京推送
creadit:
access_key: upload_dept
secret_key: 123456
business_id: ff9bade8bdf734d26943b8a616661be59
fileServerIp:
government: http://192.168.230.18/fileview/
internet: http://192.168.230.18/fileview/
loitfile:
#使用哪个文件服务 fastdfs:dfs kingbase:金山
type: fastdfs
# wps
wps:
enabled: true
http_url: http://192.169.201.43
#非税系统服务地址
noTax:
path: http://172.26.52.101:7803/OTSTrans/services/SynchronizationData?wsdl
#CA盖章地址
ca:
seal:
ip: 223.70.139.221
port: 18002
\ No newline at end of file
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-faceboxes
servlet:
multipart:
enabled: true
file-size-threshold: 1MB
max-request-size: 1000MB
max-file-size: 1000MB
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://192.169.201.12:9099/FR_FACEBOXES
username: FACEBOXESUSER
password: loit#EDCasd
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# #Mysql 数据源
# datasource:
# url: jdbc:mysql://114.55.102.254:3306/fr_faceboxes?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
# type: com.alibaba.druid.pool.DruidDataSource
# username: root
# password: loit_digital
# driver-class-name: com.mysql.cj.jdbc.Driver
# initialSize: 5
# minIdle: 5
# maxActive: 20
# maxWait: 60000
# timeBetweenEvictionRunsMillis: 60000
# minEvictableIdleTimeMillis: 300000
# validationQuery: SELECT 1
# redis 数据库
redis:
database: 3
host: 192.169.201.167
port: 6379
jedis:
pool:
max-idle: 200
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.faceboxes
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.faceboxes
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 人脸识别
recognition:
api:
# 识别路径
url: http://192.169.201.167:2234/ExtractFeatureAPI/
#默认阈值
threshold: 0.5
# 截取人脸路径
captureUrl: http://192.169.201.167:2234/DetectAPI/
# 视频识别路径
captureVideoUrl: http://192.169.201.167:2234/DetectVideoAPI/
upload:
#文件上传服务器类型 fileApiUpload:门户服务器; KS_fileApiUpload:金山服务器
fileUploadType: fileApiUpload
# #文件上传默认路径 本地
# dir: E://work/face/files/
# # 测试环境
# # http://114.55.102.254
# api: http://114.55.102.254:8050/api-file/api/file/upload
#文件上传大小限制
servlet:
multipart:
enabled: true
file-size-threshold: 1MB
max-request-size: 1000MB
max-file-size: 1000MB
# 系统服务权限白名单
ssai:
sysCodes: pc,app
\ No newline at end of file
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-inspection
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.243:9099/D_FORM_GCONFIG
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,portal2019@10.0.120.210:26379,portal2019@10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
genid:
switch: true #是否开启分布式ID拦截,默认为false,不启动请手动代码方式设置主键值,启用时代码无需设置主键值,有拦截器设置主键值,此时如果主键值已设置,拦截器也会使用业务开发人员设置的值,不会对其重新赋值
type: leaf #目前支持leaf,uuid 分布式ID
leaf:
initdata: true #如果使用leaf,初始化数据开关是会遍历所连接的数据下所有表,表的第一列存储是数字类型的,会将取该列的最大值+1作为max_id,
step: 1000 #每次从中取1000个存放到内存,并发高时可将此值设置大点,如服务器1:1-1000 服务器2 1001-2000
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
# 综合巡查检查单系统
gConfigPatrol:
path: http://10.0.120.221/loit-general-config-form/
#签章服务器配置
Stamp:
ip: 223.70.139.221
port: 18002
pdfBasePath: /home/gconfigpdf/
#单位是毫秒,默认为 50 秒
timeout: 10000
#互联网区百度接口调用
# 正式
baiduAPI:
path: http://192.168.177.27:8181
# 测试
#baiduAPI:
# path: http://120.27.92.213:8181
# 文件上传
file:
uploadUrl: http://39.99.158.58:7001/api-file/api/file/order/upload
# 定时任务开关
scheduling:
enabled: false
\ No newline at end of file
# 应用名称
spring:
application:
name: loit-sj-knowledge
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
elasticsearch:
rest:
uris: 192.168.230.19:9200
username: elastic
password: zfdsj@BJCG
connection-timeout: 1000
read-timeout: 1000
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.252:9099/KNOWLEDGE
username: KNOWLEDGEUSER
password: loit@#$!qa
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
host: 127.0.0.1
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone.knowledge.model
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
server:
#端口号
port: 8104
# 应用名称
spring:
application:
name: loit-sj-ledger
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
#config:
# 本地覆盖
#override-none: true
#allow-override: true
#override-system-properties: false
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
#指定外网ip
#ip: 39.99.158.58
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.252:9099/LEDGER
username: LEDGERUSER
password: loit@#$QAZ
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# mongodb 数据库配置
data:
mongodb:
host: 111.229.79.152
port: 27017
database: business
username: db
password: db@123
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
typeAliasesPackage: com.loit.ledger.modules.component
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
#redis://password@127.0.0.1:6379/0
loit:
swagger:
basePackage: com.loit.ledger
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
supermap:
datasource:
server: 192.169.201.131:54321
database: T5
username: SYSTEM
password: 123456
alias: T5
#ledger
ledger:
security:
data-access:
default-resource-code: ld_all_data
plain-authentication:
excluded-patterns:
web-client-configuration:
access-token-validity-in-seconds: 7200
any-sign-client:
enabled: true
timeout: 10000
inet-address: 223.70.139.221:18002
es:
host: 192.168.230.19
port: 9200
scheme: http
username: elastic
password: zfdsj@BJCG
index:
checked: ledger_inspection_object_zf
responsibility: ledger_responsible_subject_zf
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
#互联网区百度接口调用
#baiduAPI:
# path: http://192.168.177.27:8181
#baiduAPI:
# path: http://120.27.92.213:8181
superAPIPath:
path: http://192.169.200.204:8445
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-oversee
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.243:9099/OV_OVERSEE
username: OVERSEEUSER
password: loit!@#EDC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson 配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:com/loit/sone/oversee/modules/**/dao/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
ledger:
#获取token的接口地址
token-endpoint-uri: http://loit-sj-ledger/oauth/token
app:
#是否启用依赖中以实现的token,client自动获取token。true为启用
enabled: true
#应用客户端 app-id
app-id: client-a
#应用客户端 app-secret
app-secret: client-a-p
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-supervision
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.243:9099/SV_SUPERVISION
username: SUPERVISIONUSER
password: loitbbc%$#
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone
mapperLocations: classpath*:com/loit/sone/supervision/modules/**/dao/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
ledger:
#获取token的接口地址
token-endpoint-uri: http://loit-sj-ledger/oauth/token
app:
#是否启用依赖中以实现的token,client自动获取token。true为启用
enabled: true
#应用客户端 app-id
app-id: client-a
#应用客户端 app-secret
app-secret: client-a-p
\ No newline at end of file
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-sj-task
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
url: jdbc:kingbase8://10.0.120.146:9099/TK_TASK
username: SYSTEM
password: loit2019ABC
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
thymeleaf:
enabled: true #开启thymeleaf视图解析
encoding: utf-8 #编码
prefix: classpath:/templates/ #前缀
cache: false #是否使用缓存
mode: HTML #严格的HTML语法模式
suffix: .html #后缀名
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# 设置格式化
date-format: yyyy-MM-dd HH:mm:ss
# kafka 相关配置
kafka:
bootstrap-servers: 172.26.69.24:9092,172.26.69.25:9092,172.26.69.26:9092
producer:
# 发生错误后,消息重发的次数。
retries: 0
#当有多个消息需要被发送到同一个分区时,生产者会把它们放在同一个批次里。该参数指定了一个批次可以使用的内存大小,按照字节数计算。
batch-size: 16384
# 设置生产者内存缓冲区的大小。
buffer-memory: 33554432
# 键的序列化方式
key-serializer: org.apache.kafka.common.serialization.StringSerializer
# 值的序列化方式
value-serializer: org.apache.kafka.common.serialization.StringSerializer
# acks=0 : 生产者在成功写入消息之前不会等待任何来自服务器的响应。
# acks=1 : 只要集群的首领节点收到消息,生产者就会收到一个来自服务器成功响应。
# acks=all :只有当所有参与复制的节点全部收到消息时,生产者才会收到一个来自服务器的成功响应。
acks: 1
consumer:
#群组ID
group-id: default_consumer_group
# 自动提交的时间间隔 在spring boot 2.X 版本中这里采用的是值的类型为Duration 需要符合特定的格式,如1S,1M,2H,5D
auto-commit-interval: 1S
# 该属性指定了消费者在读取一个没有偏移量的分区或者偏移量无效的情况下该作何处理:
# latest(默认值)在偏移量无效的情况下,消费者将从最新的记录开始读取数据(在消费者启动之后生成的记录)
# earliest :在偏移量无效的情况下,消费者将从起始位置读取分区的记录
auto-offset-reset: earliest
# 是否自动提交偏移量,默认值是true,为了避免出现重复数据和数据丢失,可以把它设置为false,然后手动提交偏移量
enable-auto-commit: false
# 键的反序列化方式
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
# 值的反序列化方式
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
listener:
# 在侦听器容器中运行的线程数。
concurrency: 5
#listner负责ack, manual_immediate需要手动进行提交
ack-mode: manual_immediate
missing-topics-fatal: false
# mybatis配置
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.sone.task.*.modules.*.entity
mapperLocations: classpath*:com/loit/sone/task/*/modules/*/dao/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.sone
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# genid:
# switch: false #是否开启分布式ID拦截,默认为false,不启动请手动代码方式设置主键值,启用时代码无需设置主键值,有拦截器设置主键值,此时如果主键值已设置,拦截器也会使用业务开发人员设置的值,不会对其重新赋值
# type: leaf #目前支持leaf,uuid 分布式ID
# leaf:
# initdata: true #如果使用leaf,初始化数据开关是会遍历所连接的数据下所有表,表的第一列存储是数字类型的,会将取该列的最大值+1作为max_id,
# step: 100 # 开发环境设置100即可
# step: 1000 #每次从中取1000个存放到内存,并发高时可将此值设置大点,如服务器1:1-1000 服务器2 1001-2000
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
# gray:
# # 是否启用灰度(默认为false)
# enabled: true
# server:
# # 灰度管控端的url
# url: http://loit-gray-server
esb_12345:
# 市城管局 officeId
officeId: 8EE0B04CA9210D7DE053041F8EC0FB0A
officeName: 北京市城管执法局
# 12345 账户名称
accountName: W139000
base: 172.26.69.24:8181
url:
# 承办列表(kafka提供)
queryA5HandleOrderList: /subcenter/a5handle/queryA5HandleOrderList
# 工单详情
queryOrderlnfo: /subcenter/order/queryOrderlnfo
# 工单签收
a5HandleOrderSignIn: /subcenter/a5operation/a5HandleOrderSignIn
# 工单退回
a5HandleOrderBack: /subcenter/a5operation/a5HandleOrderBack
# 申请延期
a3a5UnHandleOrderPostpone: /subcenter/a5operation/a3a5UnHandleOrderPostpone
# 工单回复
a3a5HandleResultSubmit: /subcenter/a5operation/a3a5HandleResultSubmit
# 补充回复
addReply: /subcenter/a5operation/addReply
# 工单评价
orderEvaluate: /subcenter/order/orderEvaluate
# 获取催办单(kafka提供)
getOrderUrgeList: /subcenter/urge/getOrderUrgeList
# 获取督办单(kafka提供)
getOrderSuperviseList: /subcenter/supervise/getOrderSuperviseList
# 获取通知(kafka提供)
queryNoticeList: /subcenter/notice/queryNoticeList
# 获取工单附件列表
getOrderFileList: /subcenter/orderFile/getOrderFileList
# 附件下载
downloadsFile: /subcenter/orderFile/downloadsFile
# 百度地图获取经纬度url
map_baidu:
getLngAndLatURL: http://120.27.92.213:8181/baidu/getLngAndLat/
# 是否使用金山云存储
useKsFile: false
# 应用名称
spring:
application:
name: loit-version
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#Mysql 数据源
datasource:
url: jdbc:mysql://10.0.120.44:7063/loit_version_test?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8
type: com.alibaba.druid.pool.DruidDataSource
username: root
password: loit2019ABC
driver-class-name: com.mysql.cj.jdbc.Driver
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.version
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
# uri: redis://portal2019@10.0.120.55:6379/0
uri: redis-sentinel://portal2019@10.0.120.55:26379,10.0.120.161:26379,10.0.120.39:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.version
portal:
index_redirect_config:
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 模块版本文件上传路径(jar、配置、logbak)
file:
zipPath: /home/upload/zip
uploadDir: /home/upload/deploy-jar
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
jenkins:
config:
url: http://192.168.188.15:12012
token: 11eb77e9cdda37fa642b028c5d7c65dd4c
prefix_push_dir: ${file.uploadDir}
\ No newline at end of file
# 生产环境
server:
tomcat:
uriEncoding: UTF-8
threads:
max: 1000
max-connections: 2000
# 应用名称
spring:
application:
name: loit-web-portal
main:
#覆盖之前相同名称的bean
allow-bean-definition-overriding: true
cloud:
# 注册中心地址
nacos:
discovery:
# Nacos 注册中心地址
server-addr: 192.169.201.174:80
# 注册中心 命名空间
namespace: 05270cbf-5a81-4a23-a534-b59ba26f11d5
# 限流
sentinel:
datasource:
# Sentinel 流控规则配置
ds:
nacos:
dataId: ${spring.application.name}-sentinel
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 流控
rule-type: flow
# Sentinel 降级规则配置
ds1:
nacos:
server-addr: ${spring.cloud.nacos.discovery.server-addr}
namespace: ${spring.cloud.nacos.discovery.namespace}
dataId: ${spring.application.name}-degrade-rules
#数据类型
data-type: json
#所属分组
groupId: DEFAULT_GROUP
# 规则类型 降级
rule-type: degrade
#kinbase 数据源
datasource:
url: jdbc:kingbase8://10.0.120.243:9099/WEB_PORTAL
username: WEBPORTALUSER
password: loit@#$WSX
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.kingbase8.Driver
# redis 数据库
redis:
database: 0
jedis:
pool:
max-idle: 20
min-idle: 0
max-active: 8
max-wait: -1
timeout: 10000
password: portal2019
sentinel:
master: mymaster
nodes: 10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379
# json框架jackson配置
jackson:
# 设置全局时区
time-zone: "GMT+8"
# mybatis配置
#mybatis:
# configuration:
# map-underscore-to-camel-case: true
# typeAliasesPackage: com.loit.sample
# mapperLocations: classpath*:mapper/**/*.xml
mybatis:
configuration:
map-underscore-to-camel-case: true
typeAliasesPackage: com.loit.webPortal
mapperLocations: classpath*:mapper/**/*.xml
feign:
client:
config:
default:
connectTimeout: 100000
ReadTimeout: 100000
#开启sentinel 熔断
sentinel:
enabled: true
# jetcache使用
jetcache:
areaInCacheName: false
# 控制台输出统计数据,统计间隔,0表示不统计
statIntervalMinutes: 5
local:
default:
limit: 300
expireAfterWriteInMillis: 100000
# 缓存类型。tair、redis为当前支持的远程缓存;linkedhashmap、caffeine为当前支持的本地缓存类型
type: linkedhashmap
keyConvertor: fastjson
remote:
default:
keyConvertor: fastjson
valueEncoder: java
valueDecoder: java
poolConfig:
minIdle: 5
maxIdle: 20
maxTotal: 50
type: redis.lettuce
uri: redis-sentinel://portal2019@10.0.120.158:26379,10.0.120.210:26379,10.0.120.84:26379?sentinelMasterId=mymaster
readFrom: slavePreferred
loit:
swagger:
basePackage: com.loit.webPortal
# 单点登录配置
cas:
app:
access_token_cookie_tim_out: 43200
# 日志(开发环境配置,生产环境需注释掉采用logback配置)
logging:
config: http://192.169.201.174:80/nacos/v1/cs/configs?group=DEFAULT_GROUP&tenant=${spring.cloud.nacos.discovery.namespace}&dataId=logback-logstash.xml
gray:
# 是否启用灰度(默认为false)
enabled: true
server:
# 灰度管控端的url
url: http://loit-gray-server
schedule:
hostname: vm10-0-120-237.cloud.local
spring.profiles.active=${springProfilesActive} spring.profiles.active=${springProfilesActive}
spring.application.name=loit-${serviceName} spring.application.name=loit-${serviceName}
# Nacos \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0135\ufffd\u05b7 # Nacos \ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\u0135\ufffd\u05b7
spring.cloud.nacos.config.server-addr=192.168.230.18:80 spring.cloud.nacos.config.server-addr=192.169.201.174:80
spring.cloud.nacos.config.namespace=05270cbf-5a81-4a23-a534-b59ba26f11d5 spring.cloud.nacos.config.namespace=05270cbf-5a81-4a23-a534-b59ba26f11d5
spring.cloud.nacos.config.file-extension=yaml spring.cloud.nacos.config.file-extension=yaml
spring.main.allow-bean-definition-overriding=true spring.main.allow-bean-definition-overriding=true
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论