Commit d5837e33 by 张宗强

init

parents
#加密配置
jasypt:
encryptor:
password: proudkids
spring:
redis:
remote: true
host: 192.168.1.21
port: 6379
password: kiss
http:
multipart:
enabled: true
file-size-threshold: 10MB
max-file-size: 1000MB
max-request-size: 1000MB
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
cache:
redis:
expiration: 3601
ribbon:
Httpclient:
enabled: false
OkHttp:
enabled: true
ReadTimeout: 1800000
ConnectTimeout: 1800000
SocketTimeout: 1800000
feign:
hystrix:
enabled: true
okhttp:
enabled: true
httpclient:
enabled: false
client:
config:
feignName:
connectTimeout: 1800000
readTimeout: 1800000
hystrix:
command:
default:
execution:
timeout: #配置命令的执行,是否会超时
enabled: false
isolation: #命令的执行超时时间 超时将执行回退
thread:
timeoutInMilliseconds: 1800000
#监控短点配置
management:
security:
enabled: false
endpoints:
actuator:
enabled: true
shutdown:
enabled: false
proudkids:
oss-domain: https://files.proudkids.cn
ems-domain: http://test.proudkids.cn
\ No newline at end of file
server:
port: 3000
spring:
rabbitmq:
host: 192.168.1.21
port: 5675
username: zzq223
password: 222222
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 1.0
batch:
job:
enabled : true
initializer:
enabled: false
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: kiss
password: kiss123!@#
url: jdbc:mysql://192.168.1.21:3306/proudkids_kiss?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
proudkids:
auth:
clientId: ENC(rbxhyTerjSi2LATpOlQN0g==)
clientSecret: ENC(rbxhyTerjSi2LATpOlQN0g==)
scope: server
urls:
anon:
- /social
- /signin
- /signup
- /admin/user/upload
- /admin/user/editInfo
logging:
config: classpath:logback.xml
\ No newline at end of file
server:
port: 9999
spring:
rabbitmq:
host: 192.168.1.21
port: 5675
username: zzq223
password: 222222
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 0.5
http:
multipart:
enabled: true
file-size-threshold: 100MB
max-file-size: 1000MB
max-request-size: 1000MB
encoding:
charset: UTF-8
enabled: true
force: true
zuul:
servlet-path: /zuul
ignoredServices: '*'
#ignoredPatterns: /, /**/swagger-ui.html/**
host:
connect-timeout-millis: 1800000
socket-timeout-millis: 1800000
routes:
proudkids-auth:
path: /auth/**
serviceId: proudkids-auth
stripPrefix: true
sensitiveHeaders:
proudkids-upms-service:
path: /admin/**
serviceId: proudkids-upms-service
stripPrefix: true
sensitiveHeaders:
proudkids-mms:
path: /mms/**
serviceId: proudkids-mms
stripPrefix: true
sensitiveHeaders:
ratelimit:
key-prefix: proudkids-ratelimite
enabled: true
repository: REDIS
behind-proxy: true
policies:
proudkids-upms-service:
limit: 100
quota: 100
refresh-interval: 3
security:
validate:
code: true
sessions: stateless
oauth2:
resource:
loadBalanced: true
user-info-uri: http://proudkids-auth/user
prefer-token-info: false
service-id: proudkids-gateway
urls:
anon:
- /admin/user/upload
- /admin/user/editInfo
- /auth/**
- /admin/code/*
- /admin/user/info
- /admin/menu/userTree
- /admin/generate/**
- /swagger-resources/**
- /swagger-ui.html
- /*/v2/api-docs
- /swagger/api-docs
- /webjars/**
logging:
config: classpath:logback.xml
server.port: 8443
server.ssl.key-store: classpath:ce.proudkids.cn.jks
server.ssl.key-store-password: proudkids
server.ssl.keyStoreType: JKS
\ No newline at end of file
server:
port: 8313
#Redis cache 过期时间设置
redis:
cache:
expiration: 3600
# datasoure默认使用JDBC
spring:
data:
mongodb:
database: kiss
host: 192.168.1.21
port: 27017
username: kiss
password: kiss
rabbitmq:
host: 192.168.1.21
port: 5675
username: zzq223
password: 222222
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 1.0
# 分库分表支持
sharding:
jdbc:
defaultDataSourceName:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: kiss
password: kiss123!@#
jdbc-url: jdbc:mysql://192.168.1.21:3306/proudkids_kiss?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: kiss
password: kiss123!@#
jdbc-url: jdbc:mysql://192.168.1.21:3306/proudkids_kiss?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
config:
sharding:
tables:
sys_log:
actual-data-nodes: ds.sys_log_${0..1}
table-strategy:
inline:
sharding-column: id
algorithm-expression: sys_log_${id % 2}
key-generator-column-name: id
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
typeAliasesPackage: com.proudkids.admin.model.entity
global-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: 0
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 1
#驼峰下划线转换
db-column-underline: true
#刷新mapper 调试神器
refresh-mapper: true
#数据库大写下划线转换
#capital-mode: true
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
logging:
config: classpath:logback.xml
server:
port: 4000
#Redis cache 过期时间设置
redis:
cache:
expiration: 3600
# datasoure默认使用JDBC
spring:
rabbitmq:
host: 192.168.1.21
port: 5675
username: zzq223
password: 222222
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 1.0
# 分库分表支持
sharding:
jdbc:
defaultDataSourceName:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: kiss
password: kiss123!@#
jdbc-url: jdbc:mysql://192.168.1.21:3306/proudkids_kiss?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: kiss
password: kiss123!@#
jdbc-url: jdbc:mysql://192.168.1.21:3306/proudkids_kiss?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
typeAliasesPackage: com.proudkids.admin.model.entity
global-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: 0
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 1
#驼峰下划线转换
db-column-underline: true
#刷新mapper 调试神器
refresh-mapper: true
#数据库大写下划线转换
#capital-mode: true
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
logging:
config: classpath:logback.xml
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment