Greetings,
I've followed many of the instructions here, but my BB reverse proxy doesn't seem to work correctly. All of my other (similar) hosts work fine, but BB won't redirect correctly.
server {
server_name bitbucket.domain.here;
proxy_read_timeout 600s;
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://bitbucket:7990;
proxy_set_header X-Real-IP $remote_addr;
port_in_redirect off;
proxy_redirect off;
}
}
In many cases it immediately reverts to http://bitbucket:7990
In some other cases it seemingly works, but clicking in "Bitbucket" logo in the upper left points to "http://bitbucket:7990"
Any help would be appreciated.