HTTPS and ERR_TOO_MANY_REDIRECTS

From documentation:

Enter the URL that is used to access your publication. If using a subpath, enter the full path, https://example.com/blog/ . If using SSL, always enter the URL with https:// .

My ghost config:

“url”: “https://site.ru/”,
“server”: {
“host”: “127.0.0.1”,
“port”: 8000
}

Nginx config:

location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
}

And now on front-end always error: ERR_TOO_MANY_REDIRECTS

Maybe in the ghost config should specify the http protocol?

fix: proxy_set_header X-Forwarded-Proto $scheme;