Wrong next URL scheme
Posted: Tue Dec 15, 2020 8:01 pm
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/
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?
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": [...]
}