Skip to content

Commit

Permalink
add local repo
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyh.lee committed Jul 24, 2018
1 parent 40ac4c5 commit 4529441
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
26 changes: 26 additions & 0 deletions mudfrog-config-localrepo/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
test: 1230688
test2: 88888

spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://192.168.213.81:3306/test?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
username: root
password: 111111
jpa:
hibernate:
ddl-auto: update
show-sql: true
redis:
host: 192.168.213.81
port: 6379
password: 123456
database: 2
pool:
max-active: 8
max-idle: 8
max-wait: -1
http:
multipart:
max-file-size: 10MB
max-request-size: 10MB
61 changes: 61 additions & 0 deletions mudfrog-config-localrepo/mudfrog-gateway-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
server:
port: 9999

spring:
zipkin:
rabbitmq:
queue: zipkin
sleuth:
sampler:
percentage: 0.2

zuul:
ribbon:
eager-load:
enabled: true
clients: pig-auth,pig-upms-service,pig-demo-service
ignoredServices: '*'
host:
connect-timeout-millis: 10000
socket-timeout-millis: 10000
ratelimit:
key-prefix: pig-ratelimite
enabled: true
repository: REDIS
behind-proxy: true
policies:
pig-upms-service:
limit: 100
quota: 100
refresh-interval: 3

security:
encode:
key: '1234567887654321' #必须16位
validate:
code: true
preview: true
sessions: stateless
oauth2:
client:
client-id: pig
client-secret: pig
resource:
jwt:
key-uri: ${security.auth.server}/oauth/token_key #解析jwt令牌所需要密钥的地址

ignore:
urls:
- /mobile/**
- /auth/**
- /admin/code/*
- /admin/smsCode/*
- /admin/user/info
- /admin/menu/userMenu
- /swagger-resources/**
- /swagger-ui.html
- /*/v2/api-docs
- /swagger/api-docs
- /webjars/**
clients:
- app

0 comments on commit 4529441

Please sign in to comment.