FHIR Chat · Change Context Path of HAPI-FHIR Starter Project · hapi

Stream: hapi

Topic: Change Context Path of HAPI-FHIR Starter Project


view this post on Zulip Alexander Kiel (Oct 26 2020 at 19:22):

Can I change the context path, which defaults to /fhir using the Docker image from: https://hub.docker.com/r/hapiproject/hapi ? I would like to change if to something completely custom, a project name. It would be also ok to have /<project-name>/fhir but I need something custom, because otherwise, I have to allocate a subdomain for the project.

view this post on Zulip Jens Villadsen (Oct 26 2020 at 19:25):

Not directly - see https://github.com/hapifhir/hapi-fhir-jpaserver-starter#deploying-to-an-application-server on how to change the context path

view this post on Zulip Jens Villadsen (Oct 26 2020 at 19:26):

Or https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/137

view this post on Zulip Jens Villadsen (Oct 26 2020 at 20:34):

@Alexander Kiel https://www.baeldung.com/spring-boot-context-path#1-usingapplicationproperties-yml this may work as well

view this post on Zulip Alexander Kiel (Oct 26 2020 at 20:38):

Thanks @Jens Villadsen I try to get this working with the combination of a Docker image and config. So please no programming here.

view this post on Zulip Jens Villadsen (Oct 26 2020 at 20:41):

Then I would recommend to try the last link

view this post on Zulip Alexander Kiel (Oct 27 2020 at 07:13):

@Jens Villadsen Thanks. I tried the config from the balding article, but it doesn't work. So I will use a subdomain.

view this post on Zulip Jens Villadsen (Oct 27 2020 at 07:17):

Rename the war instead

view this post on Zulip Alexander Kiel (Oct 27 2020 at 08:28):

Jens Villadsen said:

Rename the war instead

No, I just want to use the Docker image. I can't afford to put more work into this project.


Last updated: Apr 12 2022 at 19:14 UTC