Since I’m using docker, I set the GF_ROOT_URL envvar and grafana honoured that config. It is working now.
Thanks @jangaraj!!