【问题标题】:Configuring jhipster-registry v3.0.3 with Git repo使用 Git repo 配置 jhipster-registry v3.0.3
【发布时间】:2017-06-23 22:04:55
【问题描述】:

我正在尝试为 jhipster-registry 使用预打包的 v3.0.3 战争文件。我使用这些命令行属性启动它,试图将它指向我的 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 文件放在某个地方?当它是预构建的战争文件并嵌入了引导程序/应用程序 yml 文件时,我不清楚配置它的正确方法。

有没有办法打开调试日志以便我查看发生了什么?

【问题讨论】:

    标签: jhipster jhipster-registry


    【解决方案1】:

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

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

    请注意,这与“经典”的 Eureka 和 Spring Cloud Config 服务器有所不同,默认情况下它们是不受保护的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-16
      • 1970-01-01
      • 2017-08-21
      • 2018-01-12
      • 2020-09-18
      • 2018-07-24
      相关资源
      最近更新 更多