Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 154 lines (127 sloc) 5.88 KB
# ===================================================================
# springboot配置
# ===================================================================
# MYBATIS-PLUS
mybatis-plus:
mapper-locations: classpath:mapper/*Mapper.xml
type-aliases-package: net.dragonshard.sample.model.entity
type-enums-package: net.dragonshard.sample.enums
configuration:
cache-enabled: false
global-config:
super-mapper-class: com.baomidou.mybatisplus.core.mapper.BaseMapper
banner: false
spring:
redis:
host: 192.168.1.1
password: pwd
port: 6413
database: 0
data:
redis:
repositories:
enabled: false
servlet:
multipart:
maxFileSize: "10MB"
# ===================================================================
# dragonshard配置
# ===================================================================
dragonshard:
web-core:
jackson:
allow-unquoted-control-chars: true
time-format-serializer: HH:mm:ss.SSS
date-format-serializer: yyyy-MM-dd
date-time-format-serializer: yyyy-MM-dd HH:mm:ss.SSS
version:
enabled: true
dynamic-datasource:
primary: master
strict: false
p6spy: true
datasource:
master:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/dragonshard_sample_master?allowMultiQueries=true&useSSL=false
username: root
password: b123456
custom_1:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/dragonshard_sample_custom_1?allowMultiQueries=true&useSSL=false
username: root
password: b123456
custom_2:
# 可以通过 type 属性来指定连接池,默认为 Hikari
# type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/dragonshard_sample_custom_2?allowMultiQueries=true&useSSL=false
username: root
password: b123456
redis:
# 如果没有可用的redis环境,这里要关掉
enabled: false
biz-prefix: dsf
secret:
enabled: true
aes:
enabled: true
key: nLa7BnN8W0ORlQI501GLAw==
rsa:
enabled: true
# 前端js加密,服务端解密
public-key: 10001
private-key: 1649ac2c27bd8171ad10f8ec070a304dc9de3bb2d9b39616ce9fe83d0d89307a757f30e4713a7a9cf6d402e256e99fa401b39ea335a707d42dc868cb78bfbd064697af6aa0b39b6fb7afa92f9ab7ce197a35f8f6b6d2b78b571e0609924cdd933433fdc2d244ee74686cebfc1736fb17d04a44d79a7b9f480938363b4657087f
modulus: 8f8ebda0a1f0524da6090c88af8171e2fea5666cbc3e018b6f324324991d21af4b4a8e1633e0d072299d3d42d9798878c4cf4fa6004cb1172f04a1a47297c4bee90e35e62962fdf516497d9ae2c939eb8a6dfd79261acd53edc2b38ad19279b09829c3778b5486920d854833ef3c22ec873aa025113e9825ef76a3ef67707321
# 服务端之间,不需要设置 modulus
# public-key: 30819f300d06092a864886f70d010101050003818d0030818902818100a10ab4526d4c68edb1240b89a12f1aef2ba0d25a1fa5b1a1d89ba3bc576a03bc6d47b5d214cc203745947745a4c5b5b97f9e7587ad69bd6dceeead8561ec0084b9c7016ff168a3c24f94a0b82305d8c0f3ccd63c9cbababfe02f0c61879d7f81f7d2107f6efcd7e63f2903c4fcb09c22941eaa105798e211871dde15f03059730203010001
# private-key: 30820278020100300d06092a864886f70d0101010500048202623082025e02010002818100a10ab4526d4c68edb1240b89a12f1aef2ba0d25a1fa5b1a1d89ba3bc576a03bc6d47b5d214cc203745947745a4c5b5b97f9e7587ad69bd6dceeead8561ec0084b9c7016ff168a3c24f94a0b82305d8c0f3ccd63c9cbababfe02f0c61879d7f81f7d2107f6efcd7e63f2903c4fcb09c22941eaa105798e211871dde15f030597302030100010281810097e557d6135fa9ece053664a876cbdd3ef6bbe5ce152d0ec1e3a174353941c38033f4b40fefad63c2bf5f0561127a6d3738b0bc2508fd6eb96ee4b5eeed0c25ee65f0af2b59238f6ef3a2f7fc4a0e3b1c6f7eb7d701261ea892d699d71899fe8a2c3bbaf3e51e018e3e5ce4e0dad8a793290fcea49e94cb528a2c320e734a631024100fb880b93bbfa3f07c7e6739116b9651d322de1fed8766cb0aef31fb7424f3c118c1f446a0f5b7804c2899b2581c8210129e81bb2ca407f63d8d8ffa4f9404149024100a3e71db5acd1c9eb2fb77dd2a66f2e194d83a0956ef4768eeedf670d53f748bc228b1bc06249e4ec860cbc8403b54c02c8f693f3767ea969568e01bf7cf480db024100bf7c5e73e5932910df59cd7912f7a8c68540f0df762311b3a03c6e54b12268f462dc1ad53343cb26b482d59dc4237b1ccbae6c07bc794581d9bfb93efa91b421024100996249106299b55fce38e69c02bb5b25bcbfa8c10fa3e16ba3aa17d386378daeda98da30b10abc1c88da54752acf384206f592c1adab9d390212451a8182832f02403d7776922828cd8ad8d5047f49fcfe7521f8ffa7af7c7da73e83268c027fe3fc784dd41ec1cc0d08ac2edbbd2dfe662860b564cbae48586643e8d896c8c8dfad
limit:
enabled: true
type: local
aop:
scan-packages: net.dragonshard.sample.controller
exception-ignore: false
prefix: limit
id-generator:
local:
enabled: true
data-center: 2
machine: 2
redis:
# 如果没有可用的redis环境,这里要关掉
enabled: false
prefix: idg
length: 8
zookeeper:
enabled: false
upload:
local:
enabled: true
url-prefix: http://localhost:21001/v1/api/upload/local/media/
compress:
# 异步压缩(默认false),如果此功能开启,并且 type = tinypng,则系统会验证是否引入了 dragonshard-tinypng-starter 依赖并启用
enabled: true
# 当前仅支持 tinypng 压缩方式
type: tinypng
signature:
# 签名校验(默认false)
enabled: false
# 签名用的密钥
secret-key: bdb98f3eaeb7b966804b
# 签名有效期
timeout-second: 1800
file:
# 存储路径
dir: upload_local
tinypng:
enabled: true
# 申请地址 https://tinypng.com/developers
api-key: cvJ4833Pgy8QCXPq9vcZSq81Kqs6xVtT
# 严格模式(默认false),开启后会在启动时验证api-key的有效性
strict: true
# 代理
proxy:
# ===================================================================
# 个性化配置
# ===================================================================
You can’t perform that action at this time.