修改spinnaker以侦听网络IP,而不是localhost

时间:2017-03-14 16:58:54

标签: tomcat spinnaker

我想在网络IP上公开套牌,与队友分享我的设置。它现在正在侦听localhost(使用aws快速入门),我必须设置适当的隧道,以便从http://localhost:9000的浏览器访问它。

我将Apache listen / virtualhost端口更改为0.0.0.0:9000,并修改了我的spinnaker-local.yml以设置" services"主机到0.0.0.0。出于安全原因,我认为最好让其他微服务在本地监听,并使用HTTP身份验证锁定套牌,而不是此时处理SAML或OAuth。但是当我从网络ip访问套牌时,chrome正在给我看起来像CORS错误:

XMLHttpRequest cannot load http://localhost:8084/applications. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.

我猜这是源于Tomcat的访问,但我不确定如何修复它。有谁知道如何做到这一点?

1 个答案:

答案 0 :(得分:0)

在/opt/spinnaker/config/gate.yml

中添加配置
cors:
  allowedOriginsPattern: 'http://your ip address:9000'

然后重新启动大门sudo restart gate

相关问题