作者 tslcarmack

Signed-off-by: tslcarmack <tslkfyh@yeah.net>

# 加解密根密码
jasypt:
encryptor:
password: trobs #根密码
# redis 相关
spring:
redis:
host: 10.1.1.182
port: 6379
password:
database: 13
rabbitmq:
host: 10.1.2.116
port: 5672
username: aukeyit
password: Aukey@2017
http:
multipart:
max-file-size: 1000MB
max-request-size: 1000MB
mail:
host: smtp.exmail.qq.com
username: AukeyIT@aukeys.com
password: Aukey2016.
properties:
mail.smtp.auth: true
mail.smtp.starttls.enable: false
mail.smtp.starttls.required: false
# 暴露监控端点
management:
endpoints:
web:
exposure:
include: '*'
# feign 配置
feign:
hystrix:
enabled: true
okhttp:
enabled: true
httpclient:
enabled: false
client:
config:
feignName:
connectTimeout: 10000
readTimeout: 10000
compression:
request:
enabled: true
response:
enabled: true
# hystrix If you need to use ThreadLocal bound variables in your RequestInterceptor`s
# you will need to either set the thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign.
hystrix:
command:
default:
execution:
isolation:
strategy: SEMAPHORE
thread:
timeoutInMilliseconds: 60000
shareSecurityContext: true
#请求处理的超时时间
ribbon:
ReadTimeout: 10000
ConnectTimeout: 10000
# mybaits-plus配置
mybatis-plus:
# MyBatis Mapper所对应的XML文件位置
mapper-locations: classpath:/mapper/*Mapper.xml
global-config:
# 自动刷新Mapper对应的XML文件
refresh: true
# 关闭MP3.0自带的banner
banner: false
db-config:
# 主键类型 0:数据库ID自增 1.未定义 2.用户输入 3 id_worker 4.uuid 5.id_worker字符串表示
id-type: 0
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 1
# 默认数据库表下划线命名
table-underline: true
# 逻辑删除配置
# 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置)
logic-delete-value: 1
# 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置)
logic-not-delete-value: 0
configuration:
map-underscore-to-camel-case: true
#swagger公共信息
swagger:
title: Trobs Swagger API
description: 益源ERP开放API说明文档
version: 2.9.2
license: Powered By Trobs
licenseUrl: http://www.trobs.com/
terms-of-service-url: http://www.trobs.com/
host: 192.168.29.13
contact:
name: Aukey IT
email: tslcarmack@gmail.com
url: http://www.trobs.com/
authorization:
name: Trobs OAuth
auth-regex: ^.*$
authorization-scope-list:
- scope: server
description: server all
token-url-list:
- http://192.168.29.13/auth/oauth/token
## spring security 配置
security:
oauth2:
client:
# 默认放行url,如果子模块重写这里的配置就会被覆盖
ignore-urls:
- '/actuator/**'
- '/v2/api-docs'
- '/swagger**'
- '/swagger**/**'
- '/webjars/springfox-swagger-ui/**'
resource:
loadBalanced: true
token-info-uri: http://trobs-auth/oauth/check_token
#txmanager地址
tm:
manager:
url: http://192.168.29.13:5004/tx/manager/
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)
client-secret: ENC(gPFcUOmJm8WqM3k3eSqS0Q==)
scope: server
ignore-urls:
- '/actuator/**'
- '/v2/api-docs'
- '/service/**'
- '/editor-app/**'
- '/task/view/*'
- '/process/resource/**'
- '/modeler.html'
spring:
autoconfigure:
exclude: org.activiti.spring.boot.SecurityAutoConfiguration
activiti:
check-process-definitions: false
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs_ac?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
... ...
# 数据源
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
freemarker:
allow-request-override: false
allow-session-override: false
cache: true
charset: UTF-8
check-template-location: true
content-type: text/html
enabled: true
expose-request-attributes: false
expose-session-attributes: false
expose-spring-macro-helpers: true
prefer-file-system-access: true
suffix: .ftl
template-loader-path: classpath:/templates/
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
client-secret: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
scope: server
# 数据源配置
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
resources:
static-locations: classpath:/static/,classpath:/views/
#文件下载地址
file:
download:
url: http://192.168.29.13:8606
#文件服务器地址
aukey:
smb:
url: smb://aukeyit:aukeyit2016@10.1.1.186/files
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(fHaeVSlARUVMLLRv0SrFKLN02MiZRIOQlZftJrLXuiY=)
client-secret: ENC(fHaeVSlARUVMLLRv0SrFKLN02MiZRIOQlZftJrLXuiY=)
scope: server
# 数据源配置
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
resources:
static-locations: classpath:/static/,classpath:/views/
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(Xm1nkn5OuNq8yMS00Ke05S90y2WhxmDuN1O6fC0R+mY=)
client-secret: ENC(Xm1nkn5OuNq8yMS00Ke05S90y2WhxmDuN1O6fC0R+mY=)
scope: server
# 数据源配置
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
resources:
static-locations: classpath:/static/,classpath:/views/
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
client-secret: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
scope: server
# 数据源配置
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
resources:
static-locations: classpath:/static/,classpath:/views/
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
client-secret: ENC(NlpJuAsYk0XcxpCEGP0TXZOfcqSyasSRspEFLWimxbY=)
scope: server
# 数据源配置
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
resources:
static-locations: classpath:/static/,classpath:/views/
#微信配置(物流信息推送)
weixin:
logistic:
corpid: WW0f3efc2873ad11c3
corpsecret: 1lGrUDZS5Jj82YRCz5VFVU0oFcZY-VzXnBRqwADtO9I
agentid: 1000012
redisKey: logistic_access_token
dinner:
corpid: WW0f3efc2873ad11c3
corpsecret: 1V9RP-ELM6Th756cDY--OzgxwPXIMPa9StiKd0TQLro
agentid: 1000007
redisKey: dinner_access_token
gettoken: https://qyapi.weixin.qq.com/cgi-bin/gettoken
sendmessage: https://qyapi.weixin.qq.com/cgi-bin/message/send
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(9VO7qHAzPkVkSEYMDLVJxA==)
client-secret: ENC(9VO7qHAzPkVkSEYMDLVJxA==)
scope: server
# 数据源配置
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
resources:
static-locations: classpath:/static/,classpath:/views/
... ...
spring:
cloud:
gateway:
locator:
enabled: true
security:
encode:
# 前端密码密钥,必须16位
key: 'tsourceofbenefit'
# 不校验验证码终端
ignore:
clients:
- trobs
- test
swagger-providers:
- trobs-auth
- trobs-tx-manager
... ...
spring:
# 安全配置
security:
user:
name: ENC(rZHA4LW5hHmhLAAzJoFNag==) # trobs
password: ENC(bjeyh+Aeii3kHXkoo00ZUw==) # trobs
boot:
admin:
ui:
resource-locations: 'classpath:/ui/,classpath:/static/'
template-location: 'classpath:/ui/'
title: 'trobs 服务状态监控'
brand: 'trobs 服务状态监控'
... ...
# 页面配置
spring:
mvc:
static-path-pattern: /**
resources:
static-locations: classpath:/static/
# LCN 配置
tm:
transaction:
netty:
delaytime: 5 # 客户端链接最大通讯时间 (秒)
hearttime: 15 # 客户端心跳时间 (秒)
redis:
savemaxtime: 30 # redis 保存时间 (秒)
socket:
port: 9998 # 通讯端口
maxconnection: 1000 #最大链接数
compensate:
auto: false #是否自动补偿
notifyUrl: http://ip:port/path #补偿结果通知(配消息总线里面)
tryTime: 30 # z再次重试时间间隔
maxWaitTime: 5000 # 请求超时的最大时间 (毫秒)
... ...
## spring security 配置
security:
oauth2:
client:
client-id: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
client-secret: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
scope: server
# 默认放行url,子模块重写时application-dev.yml中的公共配置会被覆盖,所以要把公共配置中的放行url再写一次
ignore-urls:
- '/actuator/**'
- '/v2/api-docs'
- '/user/info/*'
- '/social/info/*'
- '/mobile/*'
- '/log/save'
- '/swagger**'
- '/swagger**/**'
- '/webjars/springfox-swagger-ui/**'
# 数据源
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
username: trobs
password: dfU76$N(kp
url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true
# swagger相关配置,覆盖全局配置
swagger:
authorization:
authorization-scope-list:
- scope: 'server'
description: 'server all'
- scope: 'read'
description: 'read all'
- scope: 'write'
description: 'access all'
# Logger Config
logging:
level:
com.trob4cloud.trobs.admin.mapper: debug
... ...