Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Nginx Reverse Proxy for Atlassian App's

A_N_ Onim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 28, 2020

Hello community.
I have a hypervisor with multiple virtual machines. On one of the machines, configure a reverse proxy nginx server using the paths (www.example.com/atlassian_app)
This machine has two network interfaces: eth0 (ip 192.168.1.10) - Client network: eth1 (ip 10.0.0.2) - isolated virtual network.
The rest of the machines have one isolated network connection (10.0.0.0/8), and one atlassian application each.
There is access to each individual application from the client network.
I need to link applications together.
When I install confluence, the installer gives me an error. I assume that this is due to the fact that there is no access to the client network.
Is it possible to somehow set up communication between applications without giving them access to the external network?

Atlassian app config (example jira):

<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
                   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="192.168.1.10" proxyPort="80"/>


<Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">
                    <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
                              factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
                    <Manager pathname=""/>
                    <JarScanner scanManifest="false"/>
                    <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="120" />
                </Context>

Nginx config:

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

events {
            worker_connections  1024;
}
http {
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
        access_log  /var/log/nginx/access.log  main;

server {
        listen 80;
        server_name 192.168.1.10;
        proxy_connect_timeout 10000;
        proxy_send_timeout 10000;
        proxy_read_timeout 10000;
        send_timeout 10000;
        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;
        location / {
                root /usr/share/nginx/html;
                index  index.php index.html index.htm;
        }
        location /jira {
                proxy_pass http://10.0.0.3:8080/jira;
                client_max_body_size 10M;
        }
        location /confluence {
                proxy_pass http://10.0.0.5:8090/confluence;
        }
        location /synchrony {
                proxy_pass http://10.0.0.5:8091;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "Upgrade";
        }
        location /bitbucket {
                proxy_pass http://10.0.0.6:7990;
                client_max_body_size 10M;
        }
         location /fisheye {
                proxy_pass http://10.0.0.4:8060;
                client_max_body_size 10M;
        }
        location /pgadmin4 {
               proxy_pass http://10.0.0.4/pgadmin4;
        }
        }
      }

10.0.0.3.png

 

192.168.1.10.png

 

Question-1.jpg

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events