255 lines
8.4 KiB
YAML
255 lines
8.4 KiB
YAML
server:
|
||
port: 18018
|
||
servlet:
|
||
context-path: /
|
||
|
||
## 对应 apollo 配置中心的应用名
|
||
#app:
|
||
# id: biz-service-ebtp-extend
|
||
#
|
||
## Apollo 配置信息
|
||
#apollo:
|
||
# meta: http://10.242.37.148:6001/
|
||
# bootstrap:
|
||
# namespace: application
|
||
# enabled: true
|
||
# eagerLoad:
|
||
# enabled: true
|
||
|
||
seata:
|
||
service:
|
||
vgroup-mapping:
|
||
biz-service-ebtp-extend-dev-service-group: default
|
||
spring:
|
||
aop:
|
||
auto: true #开启spring的aop配置
|
||
proxy-target-class: true
|
||
|
||
application:
|
||
name: biz-service-ebtp-extend-dev
|
||
|
||
shardingsphere:
|
||
datasource:
|
||
names: ds0
|
||
ds0:
|
||
type: com.alibaba.druid.pool.DruidDataSource
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
username: mall
|
||
password: Unicom160_30
|
||
jdbc-url: jdbc:mysql://10.125.160.30:3306/ebtp_mall_extend?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||
url: jdbc:mysql://10.125.160.30:3306/ebtp_mall_extend?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||
filters: stat,wall,log4j
|
||
maxActive: 20
|
||
initialSize: 1
|
||
maxWait: 60000
|
||
minIdle: 1
|
||
timeBetweenEvictionRunsMillis: 60000
|
||
minEvictableIdleTimeMillis: 300000
|
||
validationQuery: select 'x'
|
||
testWhileIdle: true
|
||
testOnBorrow: false
|
||
testOnReturn: false
|
||
poolPreparedStatements: true
|
||
maxOpenPreparedStatements: 20
|
||
connection-properties: druid.stat.merggSql=ture;druid.stat.slowSqlMillis=5000
|
||
props:
|
||
sql:
|
||
show: true
|
||
|
||
jackson:
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
time-zone: GMT+8
|
||
serialization:
|
||
write-dates-as-timestamps: false
|
||
|
||
# 天宫Kafka增加了安全认证,需要配置安全属性
|
||
kafka:
|
||
bootstrap-servers: 10.125.164.192:32005,10.125.164.193:32005,10.125.164.194:32005
|
||
template:
|
||
default-topic: jl_test
|
||
|
||
# 生产者配置参数
|
||
producer:
|
||
client-id: core-service-ebtp-crypt
|
||
properties:
|
||
security.protocol: SASL_PLAINTEXT
|
||
sasl.mechanism: SCRAM-SHA-256
|
||
sasl.jaas.config: org.apache.kafka.common.security.scram.ScramLoginModule required username="jltest" password="Unicom#123";
|
||
|
||
# 消费者配置参数
|
||
consumer:
|
||
group-id: core-service-ebtp-crypt-consumer
|
||
auto-offset-reset: latest
|
||
properties:
|
||
security.protocol: SASL_PLAINTEXT
|
||
sasl.mechanism: SCRAM-SHA-256
|
||
sasl.jaas.config: org.apache.kafka.common.security.scram.ScramLoginModule required username="jltest" password="Unicom#123";
|
||
|
||
# 天宫 redis 需要使用哨兵进行访问
|
||
redis:
|
||
sentinel:
|
||
master: eshop-redis
|
||
nodes: 10.125.164.124:32718, 10.125.164.118:32716, 10.125.164.121:32716
|
||
password: Unicom#135
|
||
database:
|
||
idempotent: 0
|
||
sharding: 1
|
||
cache: 2
|
||
backup: 3
|
||
|
||
|
||
# 天宫Eureka配置
|
||
eureka:
|
||
client:
|
||
service-url:
|
||
defaultZone: http://10.242.37.148:5001/eureka
|
||
instance:
|
||
prefer-ip-address: true
|
||
ip-address: 125.32.114.204
|
||
hostname: 125.32.114.204
|
||
instance-ip: 125.32.114.204:${server.port}
|
||
|
||
mybatis-plus:
|
||
configuration:
|
||
# 是否开启自动驼峰命名规则映射:从数据库列名到Java属性驼峰命名的类似映射
|
||
map-underscore-to-camel-case: true
|
||
auto-mapping-behavior: full
|
||
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
mapper-locations: classpath*:com/chinaunicom/mall/ebtp/**/mapper/*Mapper.xml
|
||
global-config:
|
||
# 逻辑删除配置
|
||
db-config:
|
||
# logic-delete-field: flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2) @TableLogic
|
||
logic-delete-value: deleted # 逻辑已删除值
|
||
logic-not-delete-value: normal # 逻辑未删除
|
||
|
||
# --------------feign ------------
|
||
feign:
|
||
httpclient:
|
||
enabled: false
|
||
okhttp:
|
||
enabled: true
|
||
client:
|
||
config:
|
||
default:
|
||
connect-timeout: 20000
|
||
read-timeout: 20000
|
||
|
||
hystrix:
|
||
command:
|
||
default:
|
||
execution:
|
||
timeout:
|
||
enabled: true
|
||
isolation:
|
||
strategy: SEMAPHORE
|
||
thread:
|
||
timeoutInMilliseconds: 200000 #熔断超时时间
|
||
circuitBreaker:
|
||
sleepWindowInMilliseconds: 20000
|
||
forceClosed: true
|
||
|
||
ribbon:
|
||
ReadTimeout: 20000 #请求处理的超时时间
|
||
ConnectTimeout: 20000 #请求连接超时时间
|
||
MaxAutoRetries: 0 #对当前实例的重试次数
|
||
MaxAutoRetriesNextServer: 1 #切换实例的重试次数 1
|
||
|
||
mconfig:
|
||
wps:
|
||
bssAppId: ue32TUnBeW
|
||
bssAppSecret: 23Ue8DKUM4VTR5uz9LiADBTI3lbCJPqF
|
||
bssAppUrl: http://10.124.150.230:8000
|
||
appid: AK20230531MTEMAF
|
||
appKey: 4ab670a08faf182d6a99a82cd8a6e05b
|
||
bss:
|
||
appTokenUrl: /api/chinaUnicom/manageCenter/documentCenter/apptoken/v1
|
||
previewUrl: /api/chinaUnicom/manageCenter/documentCenter/previewUrl/v1
|
||
editUrl: /api/chinaUnicom/manageCenter/documentCenter/webofficeurl/v1
|
||
url:
|
||
appTokenUrl: /auth/v1/app/inscope/token
|
||
previewUrl: /preview/v2/url
|
||
editUrl: /weboffice/v2/url
|
||
downFileUrl: http://10.242.31.158:18022/api/doc/v1.0/files/download
|
||
workerId: 1
|
||
datacenterId: 1
|
||
# 服务名
|
||
feign:
|
||
name:
|
||
open: biz-service-ebtp-opening #开标大厅服务
|
||
process: biz-service-ebtp-process #评审流程服务
|
||
project: biz-service-ebtp-project #项目服务
|
||
resps: biz-service-ebtp-resps #应答结构化服务
|
||
rsms: biz-service-ebtp-rsms #评审结构化服务
|
||
tender: biz-service-ebtp-tender #投标服务
|
||
documentcenter: core-service-document-center #文档中心
|
||
usercenter: core-service-usercenter-public #用户中心
|
||
strategy-center: core-service-strategy-center #风控中心
|
||
notification: notification
|
||
file:
|
||
font-address: /storage/fonts/
|
||
upload-address: /storage/reviewReport/
|
||
bss:
|
||
app-id: 2ICalrrQ0F
|
||
app-secret: 1mb6n6635cJkDb3pEQPUFXc2nRJ8RPaS
|
||
app-url-test: 2ICalrrQ0F
|
||
app-url: 1mb6n6635cJkDb3pEQPUFXc2nRJ8RPaS
|
||
document:
|
||
clientHttpUrl: http://10.242.31.158:8100/auth/oauth/token?grant_type=client_credentials&client_id=bVS46ElU&client_secret=58ea04ba02475c8da2321cc99849d2a10f15b749
|
||
message:
|
||
appCode: WEB9849352
|
||
sendVerifycodeHttpUrl: http://10.124.150.230:8000/api/chinaUnicom/dataMidPlatform/authenticationCenter/messageSendVerifycode/v1
|
||
checkVerifycodeHttpUrl: http://10.124.150.230:8000/api/chinaUnicom/dataMidPlatform/authenticationCenter/messageCheckVerifycode/v1
|
||
callBackUrl: http://10.124.150.230:8000/api/chinaUnicom/manageCenter/eshop/mobilecheck/v1
|
||
privateKey: MHgCAQECIQCA7a1i8iMeG0QoNfLYkAaj3IugsHjBGwcQv9/PmXY+cKAKBggqgRzPVQGCLaFEA0IABDBEOwQYJia5S4b5vbWy8YEh1LebhTTB2s2XlQfpjAEP7o8yYgwXWW20sXR+DcOPLwE1qqj9wUWz4zeeiv1+mzk=
|
||
# 用户暴露给 prometheus 的健康数据
|
||
management:
|
||
endpoints:
|
||
web:
|
||
exposure:
|
||
include: "*"
|
||
cors:
|
||
allowed-origins: "*"
|
||
allowed-methods: "*"
|
||
# 自定义的定时任务
|
||
xxl:
|
||
job:
|
||
admin:
|
||
addresses: http://10.242.31.158:8735/xxl-job-admin
|
||
accessToken: Eshop@2021
|
||
executor:
|
||
appname: biz-service-ebtp-extend
|
||
address: ''
|
||
ip: ''
|
||
port: 18181
|
||
logpath: /data/applogs/xxl-job/jobhandler
|
||
logretentiondays: 30
|
||
|
||
|
||
unifast:
|
||
sso:
|
||
public-key: 0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B
|
||
clientId: p6IPukcJ
|
||
redirectUrl: http://10.125.86.213:18000/redirect
|
||
getCode:
|
||
url: http://10.125.86.213:18808/outer/v1.0/sso/decide
|
||
|
||
|
||
client:
|
||
clientHttpUrl: http://10.242.31.158:8100/auth/oauth/token?grant_type=client_credentials&client_id=bVS46ElU&client_secret=58ea04ba02475c8da2321cc99849d2a10f15b749
|
||
allow:
|
||
apis:
|
||
- ^GET\./?v1/send/msg/interest/getcode$
|
||
- ^POST\./?v1/send/msg/interest/code$
|
||
- ^POST\./?v1/bizshortmessage/send/authCode$
|
||
- ^POST\./?v1/bizshortmessage/check/authCode$
|
||
|
||
|
||
oss:
|
||
endpoint: oss-cn-guangzhou-gz-d01-a.ops.super.guangzhou.unicom.local
|
||
accessKeyId: wikrNkei48gp4buV
|
||
accessKeySecret: LD8jDhf0qow4iel8vO7wno6bp4ZM7q
|
||
# accessKeyId: ENC(F3Coanx/L2UF6XjF4Uk7yp/UvkNhAlEDzLsCoBKCStBSsCZNjnzvQhpg28NUvCdG71MJZZbwCoCG5j6R7XX13A==)
|
||
# accessKeySecret: ENC(QBot3xocahGOFoGM8G7G998htTLPrbLzWa2ud05MdD6hAKPUpFAmbewui8wngQglGvZKbc8Uz+K8TpHJdSJtqw==)
|
||
bucketName: test-mall3 |