Stream: implementers
Topic: hapi fhir server proxy config
Sean McIlvenna (Sep 22 2017 at 21:42):
Hi, We are using a separate server to proxy requests to the HAPI fhir server from an HTTPS url. We are hosting HAPI FHIR server with Tomcat, at http://.../hapi-fhir-jpaserver-example/ and our proxy is https://fhir...com/. When HAPI's UI is loaded, it is looking for it at https://fhir...com/hapi-fhir-jpaserver-example/baseDstu3. How do I tell HAPI that it should use a different public url as the ${serverBase}?
Sean McIlvenna (Sep 22 2017 at 21:43):
I've looked through many docs, and not found any info on this..
Sean McIlvenna (Sep 22 2017 at 21:56):
Might have figured this out with examples in the git repo... I think its supposed to go in web.xml. Something like:
<context-param> <param-name>serverAddress</param-name> <param-value>http://fhirtest.uhn.ca/baseDstu2</param-value> </context-param>
Sean McIlvenna (Sep 22 2017 at 22:08):
ahhh.. finally finding some docs: http://hapifhir.io/doc_server_tester.html
Sean McIlvenna (Sep 22 2017 at 23:41):
Couldn't figure out how to get it to work with config files. Ended up hard-coding the AddServer() values in the java file. If someone knows how to do this via config, that would be great.
Last updated: Apr 12 2022 at 19:14 UTC