Nginx位于Key斗篷和本地微服务前面
我正在尝试设置nginx+keybeave来保护我的spring-boot微服务 我希望配置以下结构Nginx位于Key斗篷和本地微服务前面,nginx,keycloak,netflix-zuul,nginx-reverse-proxy,Nginx,Keycloak,Netflix Zuul,Nginx Reverse Proxy,我正在尝试设置nginx+keybeave来保护我的spring-boot微服务 我希望配置以下结构 internet ---https---> nginx --http--> keycloak and other protected microservices keycloak <----http----> zuul and other microservices KeyClope实例为https打开8443,为ht
internet ---https---> nginx --http--> keycloak and other protected microservices
keycloak <----http----> zuul and other microservices
KeyClope实例为https打开8443,为http打开8080
SpringCloudZuul配置如下
server:
port: "15700"
keycloak:
auth-server-url: "https://my.external.ip:8443/auth"
realm: "LedgerRunCTP"
public-client: true
resource: gateway-service
security-constraints[0]:
authRoles[0]: "user"
securityCollections[0]:
name: "internal services"
patterns[0]: "/swagger-ui.html"
server:
port: "15700"
keycloak:
auth-server-url: "https://my.external.ip:8443/auth"
realm: "LedgerRunCTP"
public-client: true
resource: gateway-service
security-constraints[0]:
authRoles[0]: "user"
securityCollections[0]:
name: "internal services"
patterns[0]: "/swagger-ui.html"