使用Git repo配置jhipster-registry v3.0.3

时间:2017-06-23 22:04:56

标签: jhipster jhipster-registry

我正在尝试为jhipster-registry使用预先打包的v3.0.3 war文件。我正在使用这些命令行属性启动它,试图将它指向我的Git repo以获取配置信息:

jhipster-registry-3.0.3.war --spring.profiles.active=prod,cust1 \
--spring.cloud.config.server.git.uri=http://myserver/url/MyConfig \
--spring.cloud.config.server.git.username=user \
--spring.cloud.config.server.git.password=pass

它开始了,但我总是得到这个错误:

Your JWT secret key is not set up, you will not be able to log into the JHipster

我尝试了很多关于如何设置Git repo的组合。我正在使用https://github.com/jhipster/jhipster-registry-sample-config

中的示例application.yml文件

jhipster-registry本身是否没有从Git读取任何配置文件?

如果我想配置jhipster-registry属性,我应该在命令行上保留覆盖内容,还是将yml文件放在某处?当它是一个预先构建的war文件并且嵌入了bootstrap / application yml文件时,我不清楚配置它的正确方法。

有没有办法打开调试日志记录,以便我可以看到发生了什么?

1 个答案:

答案 0 :(得分:3)

这是因为您的GIT存储库中没有配置您的JWT令牌。 看看我们的sample Git repository。 注册表将此令牌发送到所有已配置的应用程序,因此将能够连接到它们。

否则,它会显示警告,因为它知道这将是一个问题。

请注意,这与" classic"有所不同。 Eureka和Spring Cloud Config服务器,默认情况下不受保护。