From e35f3e9c3b5d6bae853222e46708cc421a678a46 Mon Sep 17 00:00:00 2001 From: yirenyishi Date: Sat, 16 Sep 2017 19:32:14 +0800 Subject: [PATCH] =?UTF-8?q?redis=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8F=90=E5=87=BA=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application-dev.yml | 7 ++++++- .../application-dev.yml | 6 ++++++ springcloud-zuul/application-dev.yml | 21 ++++++++++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/springcloud-consumer-config/application-dev.yml b/springcloud-consumer-config/application-dev.yml index caec939..4971fb0 100644 --- a/springcloud-consumer-config/application-dev.yml +++ b/springcloud-consumer-config/application-dev.yml @@ -1,2 +1,7 @@ server: - port: 8200 \ No newline at end of file + port: 8200 +spring: + redis: + host: 127.0.0.1 + password: 123456 + port: 6379 \ No newline at end of file diff --git a/springcloud-provider-config/application-dev.yml b/springcloud-provider-config/application-dev.yml index d6addc7..7a1e96a 100644 --- a/springcloud-provider-config/application-dev.yml +++ b/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 diff --git a/springcloud-zuul/application-dev.yml b/springcloud-zuul/application-dev.yml index 8a254b0..2859653 100644 --- a/springcloud-zuul/application-dev.yml +++ b/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: "*" \ No newline at end of file + +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 \ No newline at end of file