问题描述:
如果docker容器化jira,使用官方的镜像cptactionhank/atlassian-jira-software:latest,通常会配置域名(ex:jira.test.com)进行访问,如使用nginx进行反向代理。会出现以下错误:
com.atlassian.gadgets.dashboard.internal.diagnostics.UrlHostnameMismatchException: Detected URL hostname, '192.168.10.165', does not match expected hostname, 'jira.proxy.com'
We’ve detected a potential problem with JIRA’s Dashboard configuration that your administrator can correct. Hide
Dashboard Diagnostics: Mismatched URL Scheme
JIRA is reporting that it is using the URL scheme ‘http’, which does not match the scheme used to run these diagnostics, ‘https’. This is known to cause JIRA to construct URLs using an incorrect hostname, which will result in errors in the dashboard, among other issues.
The most common cause of this is the use of a reverse-proxy HTTP(S) server (often Ap

本文介绍了在Docker容器化Jira时遇到的nginx反向代理配置问题。官方和常见教程建议修改<JIRA-INSTALL>/conf/server.xml,但在容器化的Jira中,需要注意镜像内存在3个8080端口配置。作者发现直接修改可能不会生效,并分享了解决方案:注释掉第一个端口配置,启用第二个端口。此外,由于配置文件位于非挂载目录,重启容器会导致配置丢失。通过设置环境变量在启动容器前修改server.xml,可以解决配置持久化问题。然而,文章指出在k8s环境中多副本Jira仍存在冲突问题,以及Jira与MySQL5.6以上版本的连接协议问题。
最低0.47元/天 解锁文章
2234

被折叠的 条评论
为什么被折叠?



