1

I have docker container created from "quay.io/mongodb/charts:19.12.1" for mongodb chart.

I have below configuration in nginx

location /mongo/chart/ {
    proxy_pass "http://intenal.nosql.chart/";
}

Now if i access my chart from http://mypublicdomain.com/mongo/chart, it is not working. it seems there is error related to baseurl.

So what should i do in mongodb chart to take difference base url

divyang4481
  • 1,584
  • 16
  • 32

1 Answers1

2

I have to add following header in ngnix

location / {
                proxy_pass http://intenal.nosql.chart/;
                proxy_set_header Host $host:$server_port; 
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
}
divyang4481
  • 1,584
  • 16
  • 32