Wrong next URL scheme

Anything concerning integration via the REST API
Post Reply
walnuss0815
Posts: 1
Joined: Tue Dec 15, 2020 7:47 pm

Wrong next URL scheme

Post 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?
Post Reply