作者 wangbin

测试环境服务器配置文件

# 数据源
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(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 配置
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
... ...