Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Nginx Reverse Proxy for Atlassian App's Edited

A_N_ Onim I'm New Here Sep 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
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

26 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you