aiccs-api/src/main/resources/application.yml

181 lines
5.3 KiB
YAML
Raw Normal View History

2025-12-27 16:19:56 +08:00
logging:
level:
root: info
spring:
profiles:
2026-01-06 20:30:49 +08:00
active: prod73
2025-12-27 16:19:56 +08:00
application:
2026-01-06 20:30:49 +08:00
name: aiccs-api
2025-12-27 16:19:56 +08:00
datasource:
driver-class-name: dm.jdbc.driver.DmDriver
#https://gitee.com/wenshao/druid/tree/master/druid-spring-boot-starter
#https://github.com/alibaba/druid/wiki/DruidDataSource%E9%85%8D%E7%BD%AE
aiccs:
filters: stat
initial-size: 10
min-idle: 1
max-active: 200
max-wait: 30000000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: select 1;
crgs:
filters: stat
initial-size: 2
min-idle: 1
max-active: 200
max-wait: 30000000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: select 1;
aicorg:
filters: stat
initial-size: 2
min-idle: 1
max-active: 200
max-wait: 30000000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: select 1;
youfool:
filters: stat
initial-size: 2
min-idle: 1
max-active: 200
max-wait: 30000000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: select 1;
aiceps:
filters: stat
initial-size: 2
min-idle: 1
max-active: 200
max-wait: 30000000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: select 1
aicods:
filters: stat
initial-size: 2
min-idle: 1
max-active: 200
max-wait: 30000000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
driver-class-name: oracle.jdbc.driver.OracleDriver
druid:
web-stat-filter:
enabled: true
principal-session-name: druidSessionKey
profile-enable: true
stat-view-servlet:
enabled: true
allow:
url-pattern: /druid/*
login-username: cw_admin
login-password: cw#32058133
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
restLog:
ignoreServletPath: /druid,/swagger-resources,/v2/api-docs,/webjars,/user/checkSSOLogin
isSaveDb: true
# ignoreSuffix: .css,.jpg,.png,.icon,.html,.js
jwt:
2026-01-06 20:30:49 +08:00
id: aiccs-api
2025-12-27 16:19:56 +08:00
secret: 6541af925f844c84862fb114e00c8a73
ttlMillis: 10800000
2026-03-06 09:26:43 +08:00
server:
servlet:
context-path: /aiccs-api
2025-12-27 16:19:56 +08:00
#用户的密码sm3秘钥
#sm3:
# secret: 6a1ae0c5cd564f848207f8f3f8cf6f14
knife4j:
enable: true
production: false
# basic:
# enable: true
# username: admin
# password: 123456
mybatis-plus:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml
tag:
import:
reportStorageTime: 600000 # 失败报告保存时间10分钟
forest:
backend: okhttp3 # 后端HTTP API okhttp3
max-connections: 1000 # 连接池最大连接数默认值为500
max-route-connections: 500 # 每个路由的最大连接数默认值为500
timeout: 200000 # 请求超时时间,单位为毫秒, 默认值为3000
connect-timeout: 200000 # 连接超时时间,单位为毫秒, 默认值为2000
retry-count: 0 # 请求失败后重试次数默认为0次不重试
ssl-protocol: SSLv3 # 单向验证的HTTPS的默认SSL协议默认为SSLv3
logEnabled: true # 打开或关闭日志默认为true
log-request: true # 打开/关闭Forest请求日志默认为 true
log-response-status: true # 打开/关闭Forest响应状态日志默认为 true
log-response-content: true # 打开/关闭Forest响应内容日志默认为 false
#短信认证信息
sms:
username: test
password: test
geo:
host: https://restapi.amap.com/
# 统一门户
door:
enableTask: false # 开启推送待办
redirectUrl: https://10.194.188.238/integration?unite=1/#/toDoList
# 信创门户
xcDoor:
enableTask: false # 开启推送待办
redirectUrl: http://10.21.5.138/integration/#/toDoList
punishment:
api:
auth:
systemName: '信用分类监管系统'
2026-01-05 10:25:15 +08:00
orgName: '内蒙古市场监督管理局'
tyshxydm: '11150000MB1937153P'
2025-12-27 16:19:56 +08:00
account: 'xyfljgxt'
password: '5d08zWhr0g18ncbvKp'
deckey: 'GGXYLHJC'
2026-01-04 15:49:11 +08:00
oauth2:
sm4:
2026-01-05 10:25:15 +08:00
key: ${SM4_LOGIN_KEY:59eefc6ab7b5c9f06de12a3eefb06db5}
2026-03-06 09:26:43 +08:00
# 统一认证平台配置
unified-auth:
# 认证地址,根据实际环境配置
2026-03-24 10:17:34 +08:00
auth-url: ${UNIFIED_AUTH_URL:https://58.18.173.243:8002}
2026-03-24 15:58:45 +08:00
# 认证地址,内网
auth-url-intranet: ${UNIFIED_AUTH_URL_INTRANET:https://10.6.48.70:443}
2026-03-06 09:26:43 +08:00
# 客户端ID由统一认证平台分配
2026-03-20 17:21:09 +08:00
client-id: ${UNIFIED_AUTH_CLIENT_ID:xyjgxt}
2026-03-06 09:26:43 +08:00
# 客户端秘钥,由统一认证平台分配
2026-03-20 17:21:09 +08:00
client-secret: ${UNIFIED_AUTH_CLIENT_SECRET:482938479827349}
2026-03-06 09:26:43 +08:00
# 回调地址,需与统一认证平台注册时的回调地址一致
2026-03-24 10:17:34 +08:00
redirect-uri: ${UNIFIED_AUTH_REDIRECT_URI:https://amr.nmg.gov.cn/aiccs-api/oauth2/callback}
2026-03-06 09:26:43 +08:00
# 授权码接口路径
authorize-path: /authcenter/getOauth2Authorize
# 获取令牌接口路径
token-path: /authcenter/getOauth2Token
# 获取用户信息接口路径
userinfo-path: /authcenter/getOauth2UserInfo
# 验证令牌有效性接口路径
check-token-path: /authcenter/checkTAValid
# 单点登出接口路径
logout-path: /authcenter/userLogout