尝试使用Zuul将https:// localhost /路由到http:// localhost:8080 /

时间:2019-02-18 07:25:28

标签: routes netflix-zuul

当我尝试在application.properties中使用Zuul配置时,根据到目前为止我对Zuul的了解,我必须指定zuul.routes.login.url = http://localhost:8080/

所以我应该给https://localhost/login重定向到http://localhost:8080/

我根本不想结束登录。

但是我想要诸如之类的东西,当我按下https://localhost/时,它应该指向http://localhost:8080/

是否有任何配置元素或可帮助我实现这一目标的东西 到目前为止我的配置

zuul.routes.login.url=http://localhost:8080/
#Riban is auto integrated with Zuul and for this exercise we are not 
using that.
ribbon.eureka.enabled=false
#Will start the gateway server @8080
#server.port=8080
# Define a custom port instead of the default 8080
server.port=443
# Tell Spring Security (if used) to require requests over HTTPS
security.require-ssl=true

# The format used for the keystore 
server.ssl.key-store-type=PKCS12
# The path to the keystore containing the certificate

我希望给予https://localhost/应该路由到http://localhost:8080/

谢谢。

0 个答案:

没有答案