OJS 3 behind reverse proxy - how to achieve?

This workaround seems to lead to relative links for OAI aswell.

https://www.zchinr.org/index.php/zchinr/oai?verb=ListRecords&metadataPrefix=oai_dc

Not to sure if this works well with indexes like the Bielefeld Academic Search Engine.