Page 1 of 1

Wrong next URL scheme

Posted: Tue Dec 15, 2020 8:01 pm
by walnuss0815
Hello,

I am using Mayan EDMS in Docker behind a NGINX proxy and access it using https. When I am using the API to get the documents the APi returns a "next" URL starting with http. So the result looks like this:

GET https://edms.example.com/api/documents/

Code: Select all

{
    "count": 512,
    "next": "http://edms.example.com/api/documents/?page=2",
    "previous": null,
    "results": [...]
}
I already tried to fix it by settings "proxy_set_header X-Forwarded-Proto $scheme;" in NGINX config. Is there a possibility to get the URL with the correct scheme?