Jira镜像容器化后nginx反向代理的配置

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

 

问题描述:

如果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 Apache or IIS) in front of the application server running JIRA. While this configuration is supported, some additional setup might be necessary in order to ensure that JIRA detects the correct scheme.
The following articles describe the issue and the steps you should take to ensure that your web server and app server are c
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Blue_Tear

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值