Commit d27e9d60 by 张宗强

init

parents
#加密配置
jasypt:
encryptor:
password: lengleng
spring:
redis:
remote: true #cachecloud 获取
host: 106.14.69.75
port: 6381
password:
http:
multipart:
max-file-size: 1000MB
max-request-size: 1000MB
cache:
redis:
expiration: 3601
ribbon:
Httpclient:
enable: false
OkHttp:
enable: true
ReadTimeout: 10000
ConnectTimeout: 10000
feign:
hystrix:
enabled: true
okhttp:
enable: true
httpclient:
enable: false
client:
config:
feignName:
connectTimeout: 30000
readTimeout: 30000
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 60000
#监控短点配置
management:
security:
enabled: false
endpoints:
actuator:
enabled: true
shutdown:
enabled: false
server:
port: 3000
# datasoure默认使用JDBC
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: ENC(gc16brBHPNq27HsjaULgKGq00Rz6ZUji)
url: jdbc:mysql://106.14.69.75:3309/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
pig:
auth:
clientId: ENC(Ho5VxMWMMIzfIEE8/WxVzA==)
clientSecret: ENC(Ho5VxMWMMIzfIEE8/WxVzA==)
scope: server
social:
qq:
providerId: qq
clientId: ENC(jYTHlVSN8p2C3KrLz40H7JJYZcQs3SAK)
clientSecret: ENC(DmTyBXeNFG7Z6pooPCtDUMcI1MYTiO3ldaEOuVWmOTpgDVmyGMsI42hz6OM+0pEE)
urls:
anon:
- /social
- /signin
- /signup
- /mobile/token
logging:
config: classpath:logback.xml
server:
port: 4060
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: ENC(gc16brBHPNq27HsjaULgKGq00Rz6ZUji)
url: jdbc:mysql://106.14.69.75:3309/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
elasticjob:
zookeeper:
server-lists: 106.14.69.75:2181
namespace: pig-daemon
\ No newline at end of file
server:
port: 9999
spring:
rabbitmq:
host: 106.14.69.75
port: 5682
username: pig
password: ENC(gc16brBHPNq27HsjaULgKGq00Rz6ZUji)
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 1.0
zuul:
ignoredServices: '*'
host:
connect-timeout-millis: 30000
socket-timeout-millis: 30000
routes:
pig-auth:
path: /auth/**
serviceId: pig-auth
stripPrefix: true
sensitiveHeaders:
pig-upms-service:
path: /admin/**
serviceId: pig-upms-service
stripPrefix: true
sensitiveHeaders:
ratelimit:
key-prefix: pig-ratelimite
enabled: true
repository: REDIS
behind-proxy: true
policies:
pig-upms-service:
limit: 100
quota: 100
refresh-interval: 3
security:
validate:
code: false
sessions: stateless
oauth2:
resource:
loadBalanced: true
user-info-uri: http://pig-auth/user
prefer-token-info: false
service-id: pig-gateway
urls:
anon:
- /mobile/**
- /auth/**
- /admin/code/*
- /admin/smsCode/*
- /admin/user/info
- /admin/menu/userTree
- /swagger-resources/**
- /swagger-ui.html
- /*/v2/api-docs
- /swagger/api-docs
- /webjars/**
logging:
config: classpath:logback.xml
server:
port: 4050
spring:
rabbitmq:
host: 106.14.69.75
port: 5682
username: pig
password: lengleng
sms:
aliyun:
accessKey: ENC(Lm4sMaa8jpGOwK9hkuRI3SWHlUd63RTqq)
secretKey: ENC(A9i34tFkZLy8HVd9TTKjmnp5P/OE6pEE6+lAOF6tKxwPHizQ3/AG4cG+XoM8/5fO)
channels:
loginCodeChannel: SMS_34630023
\ No newline at end of file
server:
port: 5001
spring:
rabbitmq:
host: 106.14.69.75
port: 5682
username: pig
password: ENC(gc16brBHPNq27HsjaULgKGq00Rz6ZUji)
# zipkin:
# base-url: http://localhost:5002
# sleuth:
# enabled: true
# sampler:
# percentage: 1
boot:
admin:
turbine:
location: pig-monitor
routes:
endpoints: env,metrics,trace,dump,jolokia,info,configprops,trace,logfile,refresh,flyway,liquibase,heapdump,loggers,auditevents,hystrix.stream,turbine.stream
turbine:
app-config: pig-gateway #收集监控信息的服务名
combine-host-port: true
cluster-name-expression: new String('default') #集群名称
mobiles:
users:
- 17034642119
\ No newline at end of file
server:
port: 4000
#Redis cache 过期时间设置
redis:
cache:
expiration: 3600
# datasoure默认使用JDBC
spring:
rabbitmq:
host: 106.14.69.75
port: 5682
username: pig
password: lengleng
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: root
password: lengleng
jdbc-url: jdbc:mysql://106.14.69.75:3309/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
datasource:
names: ds
ds:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.jdbc.Driver
username: root
password: lengleng
jdbc-url: jdbc:mysql://106.14.69.75:3309/pig?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.github.pig.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
fdfs:
file-host: http://123.206.94.20:9999/
tracker-list:
- 123.206.94.20:22122
qiniu:
accessKey: hM2cBDEM0FTYzpXbigRW90kV12NhhzhFM3jCzurJ
secretKey: ENC(HM/K0KmtFoZSBhGDEA0Ez71ePTncZlQ954DfLNMZuOftKZq+2WR+dCXH9QEsf768q9wwd92RXLE=)
bucket: pigcloud
qiniuHost: http://p0hpm86wj.bkt.clouddn.com/
logging:
config: classpath:logback.xml
server:
port: 5003
# datasoure默认使用JDBC
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: ENC(gc16brBHPNq27HsjaULgKGq00Rz6ZUji)
url: jdbc:mysql://106.14.69.75:3309/pig?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
zipkin:
collector:
rabbitmq:
addresses: 106.14.69.75:5682
password: lengleng
username: pig
queue: zipkin
storage:
type: mysql
\ No newline at end of file
server:
port: 5002
zipkin:
collector:
rabbitmq:
addresses: 106.14.69.75:5682
password: lengleng
username: pig
queue: zipkin
storage:
type: elasticsearch
elasticsearch:
hosts: 106.14.69.75:9200
cluster: elasticsearch
index: zipkin
max-requests: 64
index-shards: 5
index-replicas: 1
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