jhipster - 使用 Git 存储库配置 jhipster-registry v3.0.3

标签 jhipster jhipster-registry

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

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 存储库的组合。我正在使用 https://github.com/jhipster/jhipster-registry-sample-config 中的示例 application.yml 文件

jhipster-registry 本身不从 Git 读取任何配置文件吗?

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

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

最佳答案

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

否则,它会显示警告,因为它知道这稍后会成为问题。

请注意,这与“经典”Eureka 和 Spring Cloud Config 服务器不同,后者默认情况下不安全。

关于jhipster - 使用 Git 存储库配置 jhipster-registry v3.0.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44730547/

相关文章:

java - 升级我的 jhipster 应用程序

java - Feign Client 从 Jhipster UAA 到微服务网关应用程序

java - Jhipster Registry 4.0.0异常预打包WAR

java - 错误 :Failed to execute goal com. google.cloud.tools :jib-maven-plugin:0. 9.11:dockerBuild dockerizing JHipster-Registry

docker - 如何使用 JHipster Registry [Docker] 修复无效的 JWT?

heroku - Heroku 上的 JHipster "URL must start with ' jdbc'"错误

ubuntu - 如何从 Vagrantfile 更改键盘布局

JHipster - 运行可执行 jar 时出现 404

java - JHipster > 发出 post 请求时访问被拒绝