feat: support load application yaml
This commit is contained in:
7
build/docker/wfc/auth/conf/default/application.yml
Normal file
7
build/docker/wfc/auth/conf/default/application.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
spring:
|
||||
redis:
|
||||
host: wfc-redis
|
||||
port: 6379
|
||||
password:
|
||||
config:
|
||||
import: optional:classpath:application-common.yml
|
||||
87
build/docker/wfc/gateway/conf/default/application.yml
Normal file
87
build/docker/wfc/gateway/conf/default/application.yml
Normal file
@@ -0,0 +1,87 @@
|
||||
spring:
|
||||
redis:
|
||||
host: wfc-redis
|
||||
port: 6379
|
||||
password:
|
||||
cloud:
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
lowerCaseServiceId: true
|
||||
enabled: true
|
||||
routes:
|
||||
# 认证中心
|
||||
- id: wfc-auth
|
||||
uri: lb://wfc-auth
|
||||
predicates:
|
||||
- Path=/auth/**
|
||||
filters:
|
||||
# 验证码处理
|
||||
- CacheRequestFilter
|
||||
- ValidateCodeFilter
|
||||
- StripPrefix=1
|
||||
# 代码生成
|
||||
- id: wfc-gen
|
||||
uri: lb://wfc-gen
|
||||
predicates:
|
||||
- Path=/code/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 定时任务
|
||||
- id: wfc-job
|
||||
uri: lb://wfc-job
|
||||
predicates:
|
||||
- Path=/schedule/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 系统模块
|
||||
- id: wfc-system
|
||||
uri: lb://wfc-system
|
||||
predicates:
|
||||
- Path=/system/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 用户模块
|
||||
- id: wfc-user
|
||||
uri: lb://wfc-user
|
||||
predicates:
|
||||
- Path=/u/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# 文件服务
|
||||
- id: wfc-file
|
||||
uri: lb://wfc-file
|
||||
predicates:
|
||||
- Path=/file/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
# payment
|
||||
- id: wfc-payment
|
||||
uri: lb://wfc-payment
|
||||
predicates:
|
||||
- Path=/payment/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
config:
|
||||
import: optional:classpath:application-common.yml
|
||||
|
||||
# 安全配置
|
||||
security:
|
||||
# 验证码
|
||||
captcha:
|
||||
enabled: true
|
||||
type: math
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
enabled: true
|
||||
excludeUrls:
|
||||
- /system/notice
|
||||
# 不校验白名单
|
||||
ignore:
|
||||
whites:
|
||||
- /auth/logout
|
||||
- /auth/login
|
||||
- /auth/register
|
||||
- /auth/checkRepeat
|
||||
- /*/v2/api-docs
|
||||
- /csrf
|
||||
25
build/docker/wfc/modules/file/conf/default/application.yml
Normal file
25
build/docker/wfc/modules/file/conf/default/application.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
# spring配置
|
||||
spring:
|
||||
config:
|
||||
import: optional:classpath:application-common.yml
|
||||
|
||||
# 本地文件上传
|
||||
file:
|
||||
domain: wfc-file:9201
|
||||
path: /opt/wfc/upload
|
||||
prefix: /kyc
|
||||
gateway: http://192.168.2.116:8080
|
||||
|
||||
# FastDFS配置
|
||||
fdfs:
|
||||
domain: http://wfc-file
|
||||
soTimeout: 3000
|
||||
connectTimeout: 2000
|
||||
trackerList: wfc-file:22122
|
||||
|
||||
# Minio配置
|
||||
minio:
|
||||
url: http://wfc-file:9000
|
||||
accessKey: minioadmin
|
||||
secretKey: minioadmin
|
||||
bucketName: test
|
||||
37
build/docker/wfc/modules/gen/conf/default/application.yml
Normal file
37
build/docker/wfc/modules/gen/conf/default/application.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
# spring配置
|
||||
spring:
|
||||
redis:
|
||||
host: wfc-redis
|
||||
port: 6379
|
||||
password:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: 123456
|
||||
config:
|
||||
import: optional:classpath:application-common.yml
|
||||
|
||||
# mybatis配置
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: org.wfc.gen.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath:mapper/**/*.xml
|
||||
|
||||
# swagger配置
|
||||
swagger:
|
||||
title: 代码生成接口文档
|
||||
license: Powered By wfc
|
||||
licenseUrl: https://wfc.vip
|
||||
|
||||
# 代码生成
|
||||
gen:
|
||||
# 作者
|
||||
author: wfc
|
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: org.wfc.system
|
||||
# 自动去除表前缀,默认是false
|
||||
autoRemovePre: false
|
||||
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
|
||||
tablePrefix: sys_
|
||||
26
build/docker/wfc/modules/job/conf/default/application.yml
Normal file
26
build/docker/wfc/modules/job/conf/default/application.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
# spring配置
|
||||
spring:
|
||||
redis:
|
||||
host: wfc-redis
|
||||
port: 6379
|
||||
password:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: 123456
|
||||
config:
|
||||
import: optional:classpath:application-common.yml
|
||||
|
||||
# mybatis配置
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: org.wfc.job.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath:mapper/**/*.xml
|
||||
|
||||
# swagger配置
|
||||
swagger:
|
||||
title: 定时任务接口文档
|
||||
license: Powered By wfc
|
||||
licenseUrl: https://wfc.vip
|
||||
@@ -51,6 +51,8 @@ spring:
|
||||
# password:
|
||||
# url:
|
||||
# driver-class-name:
|
||||
config:
|
||||
import: optional:classpath:application-common.yml
|
||||
|
||||
# mybatis-plus配置
|
||||
mybatis-plus:
|
||||
Reference in New Issue
Block a user