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.
Hi,
Configuring a reverse proxy also requires some changes on the Bitbucket Server side, including a change of the Base URL in the server settings - did you adjust that accordingly?
What's more, you'll also need to tell Bitbucket Server about the fact that there is a reverse proxy - see https://confluence.atlassian.com/bitbucketserver/securing-bitbucket-server-behind-nginx-using-ssl-776640112.html (under Step 1) for the required configuration to be added.
Cheers,
Christian
Premier Support Engineer
Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.