Closed NicolaiLolansen closed 2 years ago
From uvicorn documentation:
--proxy-headers / --no-proxy-headers
Enable/Disable X-Forwarded-Proto,
X-Forwarded-For, X-Forwarded-Port to
populate remote address info.
Adding just this to the docker file, seems to have no change.
Fixed in 603e7aac6c5b0b930f3fe21db45122350de6098c and subsequent commits by setting server "host" and "root_path" from the "x-forwarded-xxx" headers in middleware.
Example the link: https://api.dataforsyningen.dk/skraafotoapi_test/collections?&token=None
Construcs a link property like so:
http://load202.kmsext.dk should be https://api.dataforsyningen.dk instead.