Running Fisheye behind Nginx Proxy

Hi, I'm trying to run Fisheye behind a proxy. So far, I've managed to get Jira and Stash to work behind the proxy, but not Fisheye.

Here's my config file in Nginx:

server {

listen   80;

server_name  dev.int.com;

access_log off;

location / {

    proxy_pass http://IP:8080;

    proxy_set_header    Host            $host;

    proxy_set_header    X-Real-IP       $remote_addr;

    proxy_set_header    X-Forwarded-for $remote_addr;

    port_in_redirect off;

    proxy_redirect   http://IP:8080/jira  /;

    proxy_connect_timeout 300;

    }

 

location ~ ^/stash {

    proxy_pass http://IP:7990;

    proxy_set_header    Host            $host;

    proxy_set_header    X-Real-IP       $remote_addr;

    proxy_set_header    X-Forwarded-for $remote_addr;

    port_in_redirect off;

    proxy_redirect   http://IP:7990/  /stash;

    proxy_connect_timeout 300;

    }

 

location ~ ^/crucible {

    proxy_pass http://IP:8060;

    proxy_set_header    Host            $host;

    proxy_set_header    X-Real-IP       $remote_addr;

    proxy_set_header    X-Forwarded-for $remote_addr;

    port_in_redirect off;

    proxy_redirect   http://IP:8060/  /crucible;

    proxy_connect_timeout 300;

    }

 

    error_page   500 502 503 504  /50x.html;

    location = /50x.html {

    root   /usr/local/nginx/html;

    }

}

and in Fisheye:

<web-server site-url="http://dev.int.com/crucible" context="/crucible">

        <http bind="http://dev.int.com/" proxy-port="80" proxy-scheme="http" proxy-host="dev.int.com/crucible"/>

    </web-server>

However, it just isn't pushing stuff out properly, and is a Fisheye problem --> When I visit /crucible, it does show the Crucible page, however, it doesn't load any page resources or ajax. Trying to login takes me to /login, so it's apparent that Fisheye is still on / for its context path despite its config file. I have restarted both Fisheye and Nginx server to no avail.
Any guidance would be appreciated :)

2 answers

1 accepted

This widget could not be displayed.

Hi Shamil.

Looking at the FishEye/Crucible config and based on the NGINX proxy config I can see a few problems with the config.xml:

* <http bind="http://dev.int.com/"> - here it should contain the port where FishEye/Crucible runs - <http bind=":8060">
* <proxy-host="dev.int.com/crucible"/> - here the value should be only the name of the proxy host - <proxy-host="dev.int.com"/>

The rest of the configuration does seems ok.

Cculd you please do the modifications above and restart FishEye/Crucible? After that please let me know if the problem was solved.

Cheers,
Douglas Fabretti
Atlassian Support

Yep, that fixed it - Thanks :)

This widget could not be displayed.

You may also want to add "proxy_buffering off;" to your location as it will force nginx to send reponses syncronously. This will give a more reponsive feel as the user will not have to wait for the page to completely load into the buffer before nginx sends the data to the user.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

190 views 18 7
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you