datasharingframework / dsf

A distributed process engine based on the BPMN 2.0 and FHIR R4 standards
https://dsf.dev
Apache License 2.0
12 stars 7 forks source link

Make ServerBaseUrl Config Property of FHIR Server Optional #17

Open hhund opened 1 year ago

hhund commented 1 year ago

The config property dev.dsf.fhir.server.base.url of the FHIR server is usually not necessary and should be made optional. By setting Host, X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Proto and X-Real-IP headers in the reverse-proxy, the external URL is available to the backend server for example via UriInfo.getBaseUri().

hhund commented 1 year ago

Removing the base url config parameter and using headers from a reverse proxy does not work when the server is accessed via different domain names. But we could make the base url config parameter optional, I will update title and description of this issue accordingly.