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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,497
Community Members
 
Community Events
176
Community Groups

Is there any way to configre Nginx Reverse-Proxy for Jira Cloud application?

I'm trying to setup Nginx Reverse-Proxy for Jira Cloud application in order to make caching on our side because sometimes Jira Cloud works slowly for us.

I have configuration file below.

 

server {

  server_name jira.company.local;
  listen 80;
  location / {

    return 301 https://$server_name$request_uri;
  }
}


server {

  listen 443 default ssl;

  server_name jira.company.local;
  root /usr/share/nginx/html;

  ssl_certificate /etc/nginx/cert.crt;
  ssl_certificate_key /etc/nginx/cert.key; # self-signed

  ssl on;
  ssl_session_cache builtin:1000 shared:SSL:10m;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
  ssl_prefer_server_ciphers on;

  include /etc/nginx/default.d/*.conf;

  client_max_body_size 10M;

  location / {

    proxy_pass https://company.atlassian.net:443;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

  }

  error_page 404 /404.html;
  location = /40x.html {

  }

  error_page 500 502 503 504 /50x.html;
  location = /50x.html {

  }
}

And it doesn't work.

I see error as on the attached screenshot.

Probably should I add/change something in Nginx configuration file?

Screenshot from 2019-01-17 17-46-46.png

3 answers

I'm curious, did you get this working? Pls share details. 

No, they did not.

To make Jira work with a proxy, you have to 

  1. Set up the proxy to talk to Jira and present itself to the intended network
  2. Tell Jira it is behind a proxy
  3. Change Jira's base url to match the proxy

You don't have access to items 2 and 3 on Cloud.

I didn't do this, but, 

I think the proxy should be forward proxy server (or cache proxy).

By configuring proxy.pac file carefully, you can make only jira traffic pass thru your cache  server. 

Hope this help.

It won't work.

To make Jira work with a proxy, you have to 

  1. Set up the proxy to talk to Jira and present itself to the intended network
  2. Tell Jira it is behind a proxy
  3. Change Jira's base url to match the proxy

You don't have access to items 2 and 3 on Cloud.

0 votes

For Atlassian services to function correctly behind a proxy, the systems running them need to know that they are being proxied, so you need to configure them on the service side.

You cannot do that to Cloud servers.

Probably, is there a way to organize cache server for Jira Cloud?

Like ctrlyare likes this

Suggest an answer

Log in or Sign up to answer