Grafana append port 3000 to URL when changing organization

I have an nginx reverse proxy to my grafana instance running on port 3000. The URL is standrad https running on port 443. However will append :3000 to the URL and break the URL if you change the current organization.

the url becomes like https://dash.example.com:3000/dashboards

My ini contains this:

# The http port to use
;http_port = 3000

# The public facing domain name used to access grafana from a browser
domain = dash.example.com

nginx:

server {
    proxy_set_header Host $http_host;
    server_name dash.example.com;
    location / {
        proxy_pass http://10.0.0.1:3000;
    }

Note

If nginx is performing TLS termination, then you must set the root_url and protocol configuration accordingly. If you’re serving Grafana from https://example.com/grafana/ then the root_url is https://example.com/grafana/ or https://%(domain)s/grafana/ with the corresponding domain configuration value set to example.com in the server section of the Grafana configuration file. Set protocol to http.

I do not understand the Note here. Are root_url and protocol configuration something in nginx? I find no documentation of them.