Browse Source

redis配置文件提出去

master
yirenyishi 7 years ago
parent
commit
e35f3e9c3b
  1. 7
      springcloud-consumer-config/application-dev.yml
  2. 6
      springcloud-provider-config/application-dev.yml
  3. 21
      springcloud-zuul/application-dev.yml

7
springcloud-consumer-config/application-dev.yml

@ -1,2 +1,7 @@
server:
port: 8200
port: 8200
spring:
redis:
host: 127.0.0.1
password: 123456
port: 6379

6
springcloud-provider-config/application-dev.yml

@ -1,4 +1,10 @@
spring:
application:
name: springcloud-provider-config
redis:
host: 127.0.0.1
password: 123456
port: 6379
jpa:
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: true

21
springcloud-zuul/application-dev.yml

@ -1,10 +1,29 @@
server:
port: 8400
spring:
redis:
host: 127.0.0.1
password: 123456
port: 6379
profiles:
active: dev
zuul:
routes:
springcloud-consumer-config: /consumer/**
springcloud-provider-config: /provider/**
# sensitiveHeaders: "*"
keycloak:
realm : springcloud-zuul
auth-server-url : http://127.0.0.1:8080/auth
ssl-required : external
resource : springcloud-zuul
credentials.secret : 11111111-1111-1111-1111-111111111111
use-resource-role-mappings : true
enable-basic-auth: true
securityConstraints:
- authRoles: user
securityCollections:
- patterns: /provider/user/info
- authRoles: users
securityCollections:
- patterns: /consumer/user/list
Loading…
Cancel
Save