Hi,
I'm building small test/dev environment for my team on AWS. I have three EC2 instances: Jira, Confluence, proxy (nginx). Also I have domain registered on Route53 with assosiated one Elastic IP. EIP has three records type A: first was created automatically after domain registration; second and third were added by me (jira-dev.domain.com and wiki-dev.doamin.com)
I have opened ports 8080, 8090, 80 in security groups. Also, for test purposes I opened all traffic from anywhere.
I made very simple proxy config:
server {
listen 80;
server_name jira-dev.domain.com;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://<private_ip>:8080;
client_max_body_size 10M;
}
}
server {
listen 80;
server_name wiki-dev.domain.com;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://<private_ip>:8090;
client_max_body_size 10M;
}
}
And below server.xml for Jira and Confluence:
<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"<>"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" scheme="http"
proxyName="jira-dev.domain.com" proxyPort="80"/>
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="http" proxyName="wiki-dev.domain.com" proxyPort="80"/>
I added nonProxyHosts to the setenv.sh, both Jira and Confluence:
JVM_SUPPORT_RECOMMENDED_ARGS="-Dhttp.proxyHost=*.domain.com -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=*.domain.com"
CATALINA_OPTS="-Dhttp.proxyHost=*.domain.com -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=*.domain.com ${CATALINA_OPTS}"
The case is that still I have Gadget feed URL error and I'm not able to configure Atlassian Jira Server as User Directory in Conflulence. I have the following error:
Connection test failed. Response from the server:
org.apache.http.conn.ConnectTimeoutException: Connect to jira-dev.atlassian-sii.com:80 [jira-dev.domain.com/<Elastic IP>] failed: connect timed out
Also it is not possible to work normally as pages are loading for a very long time.
Can anyone advise what should be changed or added to the Jira/Confluence, nginx or AWS configuration?
BR,
Michał