Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
config-center
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
proudkids-pub
config-center
Commits
6842ae0e
Commit
6842ae0e
authored
Feb 27, 2018
by
张宗强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init update
parent
1448f39b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
339 additions
and
321 deletions
+339
-321
application-dev.yml
+58
-57
pig-auth-dev.yml
+32
-32
pig-daemon-service-dev.yml
+13
-12
pig-gateway-dev.yml
+70
-57
pig-mc-service-dev.yml
+16
-15
pig-monitor-dev.yml
+30
-29
pig-upms-service-dev.yml
+81
-81
pig-zipkin-db-dev.yml
+20
-19
pig-zipkin-elk-dev.yml
+19
-19
No files found.
application-dev.yml
View file @
6842ae0e
#加密配置
jasypt
:
encryptor
:
password
:
lengleng
spring
:
redis
:
remote
:
true
#cachecloud 获取
host
:
192.168.1.82
port
:
6379
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
#加密配置
jasypt
:
encryptor
:
password
:
lengleng
spring
:
redis
:
remote
:
true
#cachecloud 获取
host
:
192.168.1.82
port
:
6379
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
pig-auth-dev.yml
View file @
6842ae0e
server
:
port
:
3000
# datasoure默认使用JDBC
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
username
:
proudkids
password
:
ENC(JRVWYprupsGt50kQeXmGBOYrTC6lR5ct)
url
:
jdbc:mysql://192.16
98.1.82:3306/proudkids_ems?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
:
3000
# datasoure默认使用JDBC
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
username
:
proudkids
password
:
pds123!@#
url
:
jdbc:mysql://192.16
8.1.82:3306/proudkids_ems?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
pig-daemon-service-dev.yml
View file @
6842ae0e
server
:
port
:
4060
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
username
:
proudkids
password
:
ENC(JRVWYprupsGt50kQeXmGBOYrTC6lR5ct)
url
:
jdbc:mysql://192.16
98.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
elasticjob
:
zookeeper
:
server-lists
:
106.14.69.75:2181
server
:
port
:
4060
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
username
:
proudkids
password
:
pds123!@#
url
:
jdbc:mysql://192.16
8.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
elasticjob
:
zookeeper
:
server-lists
:
106.14.69.75:2181
namespace
:
pig-daemon
\ No newline at end of file
pig-gateway-dev.yml
View file @
6842ae0e
server
:
port
:
9999
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
:
9999
spring
:
rabbitmq
:
host
:
192.168.1.83
port
:
5672
username
:
zzq223
password
:
222222
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
pig-mc-service-dev.yml
View file @
6842ae0e
server
:
port
:
4050
spring
:
rabbitmq
:
host
:
1
06.14.69.75
port
:
56
82
username
:
pig
password
:
lengleng
sms
:
aliyun
:
accessKey
:
ENC(Lm4sMaa8jpGOwK9hkuRI3SWHlUd63RTqq)
secretKey
:
ENC(A9i34tFkZLy8HVd9TTKjmnp5P/OE6pEE6+lAOF6tKxwPHizQ3/AG4cG+XoM8/5fO)
channels
:
server
:
port
:
4050
spring
:
rabbitmq
:
host
:
1
92.168.1.83
port
:
56
72
username
:
zzq223
password
:
222222
sms
:
aliyun
:
accessKey
:
ENC(Lm4sMaa8jpGOwK9hkuRI3SWHlUd63RTqq)
secretKey
:
ENC(A9i34tFkZLy8HVd9TTKjmnp5P/OE6pEE6+lAOF6tKxwPHizQ3/AG4cG+XoM8/5fO)
channels
:
loginCodeChannel
:
SMS_34630023
\ No newline at end of file
pig-monitor-dev.yml
View file @
6842ae0e
server
:
port
:
5001
spring
:
rabbitmq
:
host
:
1
06.14.69.75
port
:
56
82
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
:
server
:
port
:
5001
spring
:
rabbitmq
:
host
:
1
92.168.1.83
port
:
56
72
username
:
zzq223
password
:
222222
# 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
pig-upms-service-dev.yml
View file @
6842ae0e
server
:
port
:
4000
#Redis cache 过期时间设置
redis
:
cache
:
expiration
:
3600
# datasoure默认使用JDBC
spring
:
rabbitmq
:
host
:
1
06.14.69.75
port
:
56
82
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
:
proudkids
password
:
ENC(JRVWYprupsGt50kQeXmGBOYrTC6lR5ct)
url
:
jdbc:mysql://192.16
98.1.82:3306/proudkids_ems?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
:
4000
#Redis cache 过期时间设置
redis
:
cache
:
expiration
:
3600
# datasoure默认使用JDBC
spring
:
rabbitmq
:
host
:
1
92.168.1.83
port
:
56
72
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
:
proudkids
password
:
pds123!@#
url
:
jdbc:mysql://192.16
8.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
datasource
:
names
:
ds
ds
:
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.jdbc.Driver
username
:
proudkids
password
:
pds123!@#
url
:
jdbc:mysql://192.168.1.82:3306/proudkids_ems?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
pig-zipkin-db-dev.yml
View file @
6842ae0e
server
:
port
:
5003
# datasoure默认使用JDBC
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
username
:
proudkids
password
:
ENC(JRVWYprupsGt50kQeXmGBOYrTC6lR5ct)
url
:
jdbc:mysql://192.16
98.1.82:3306/proudkids_ems?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
zipkin
:
collector
:
rabbitmq
:
addresses
:
106.14.69.75:5682
password
:
lengleng
username
:
pig
queue
:
zipkin
storage
:
server
:
port
:
5003
# datasoure默认使用JDBC
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
username
:
proudkids
password
:
pds123!@#
url
:
jdbc:mysql://192.16
8.1.82:3306/proudkids_ems?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
pig-zipkin-elk-dev.yml
View file @
6842ae0e
server
:
port
:
5002
zipkin
:
collector
:
rabbitmq
:
addresses
:
1
06.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
server
:
port
:
5002
zipkin
:
collector
:
rabbitmq
:
addresses
:
1
92.168.1.83:5672
password
:
zzq223
username
:
222222
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment