作者 wangbin

测试环境服务器配置文件

  1 +# 数据源
  2 +spring:
  3 + datasource:
  4 + type: com.zaxxer.hikari.HikariDataSource
  5 + driver-class-name: com.mysql.cj.jdbc.Driver
  6 + username: trobs
  7 + password: dfU76$N(kp
  8 + url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
  9 + freemarker:
  10 + allow-request-override: false
  11 + allow-session-override: false
  12 + cache: true
  13 + charset: UTF-8
  14 + check-template-location: true
  15 + content-type: text/html
  16 + enabled: true
  17 + expose-request-attributes: false
  18 + expose-session-attributes: false
  19 + expose-spring-macro-helpers: true
  20 + prefer-file-system-access: true
  21 + suffix: .ftl
  22 + template-loader-path: classpath:/templates/
  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(9VO7qHAzPkVkSEYMDLVJxA==)
  6 + client-secret: ENC(9VO7qHAzPkVkSEYMDLVJxA==)
  7 + scope: server
  8 +# 数据源配置
  9 +spring:
  10 + datasource:
  11 + type: com.zaxxer.hikari.HikariDataSource
  12 + driver-class-name: com.mysql.cj.jdbc.Driver
  13 + username: trobs
  14 + password: dfU76$N(kp
  15 + url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
  16 + resources:
  17 + static-locations: classpath:/static/,classpath:/views/
  1 +spring:
  2 + cloud:
  3 + gateway:
  4 + locator:
  5 + enabled: true
  6 +
  7 +security:
  8 + encode:
  9 + # 前端密码密钥,必须16位
  10 + key: 'tsourceofbenefit'
  11 +
  12 +# 不校验验证码终端
  13 +ignore:
  14 + clients:
  15 + - trobs
  16 + - test
  17 + swagger-providers:
  18 + - trobs-auth
  19 + - trobs-tx-manager
  1 +## spring security 配置
  2 +security:
  3 + oauth2:
  4 + client:
  5 + client-id: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
  6 + client-secret: ENC(c5ebVTRN5xEzRooPfOtZ0w==)
  7 + scope: server
  8 + # 默认放行url,子模块重写时application-dev.yml中的公共配置会被覆盖,所以要把公共配置中的放行url再写一次
  9 + ignore-urls:
  10 + - '/actuator/**'
  11 + - '/v2/api-docs'
  12 + - '/user/info/*'
  13 + - '/social/info/*'
  14 + - '/mobile/*'
  15 + - '/log/save'
  16 + - '/swagger**'
  17 + - '/swagger**/**'
  18 + - '/webjars/springfox-swagger-ui/**'
  19 +
  20 +# 数据源
  21 +spring:
  22 + datasource:
  23 + type: com.zaxxer.hikari.HikariDataSource
  24 + driver-class-name: com.mysql.cj.jdbc.Driver
  25 + username: trobs
  26 + password: dfU76$N(kp
  27 + url: jdbc:mysql://10.1.1.86:3306/trobs?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true
  28 +
  29 +# swagger相关配置,覆盖全局配置
  30 +swagger:
  31 + authorization:
  32 + authorization-scope-list:
  33 + - scope: 'server'
  34 + description: 'server all'
  35 + - scope: 'read'
  36 + description: 'read all'
  37 + - scope: 'write'
  38 + description: 'access all'
  39 +# Logger Config
  40 +logging:
  41 + level:
  42 + com.trob4cloud.trobs.admin.mapper: debug