#352 MBS frontend behind proxy returns "localhost" in pagination data
Closed: Fixed Opened by jkaluza.

Reproducer:

$ curl https://mbs.stg.fedoraproject.org/module-build-service/1/module-builds/
{
"items": [
{
"id": 2,
"state": 1
}
],
"meta": {
"first": "http://localhost:10063/module-build-service/1/module-builds/?per_page=10&page=1",
"last": "http://localhost:10063/module-build-service/1/module-builds/?per_page=10&page=1",
"page": 1,
"pages": 1,
"per_page": 10,
"total": 1
}
}

We should return http://mbs.stg.fedoraproject.org/ there. This could need some changes in reverse proxy configuration too, if we for example decide to pass the hostname using the http header...


Metadata Update from @ralph:
- Issue assigned to ralph

Metadata Update from @ralph:
- Issue assigned to ralph

See #354.

Commit 1cf582e8 fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/mbs/issues/352

Please continue any further discussion there.

Metadata