Hi, I am trying to run bitbucket on a VM and I have setup SSL certificates and other configuration and I am able to see my login screen. The moment I added my user and password, it redirect me to localhost page i.e. http://localhost:7990 . I have checked everything and it does not look any issue with nginx because it only fails when it tries to go to home url. I also cannot see bitbucket.properties file by default at home_path/shared so I created one with below configuration.
Below is the configuration, I am using
Nginx configuration:
server { listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
server_name bitbucket.xyz.com;
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_set_header X-Forwarded-Proto $scheme;
}
}
Bitbucket.properties:
server.port=7990
server.secure=true
server.scheme=https
server.proxy-port=443
server.proxy-name=bitbucket.xyz.com