Setting custom server node name

By default EHRBase seems to add local.ehrbase.org to all the URIs that it creates

For example versioned compositionUid - ac760392-f56a-40f0-a4dd-ccd769625ea9::local.ehrbase.org::2

In my understanding the nodename is used in these URIs. I tried changing it by starting the JAR as below

#java -jar application/target/application-0.16.5.jar -server.nodename=local.ehr.network

Though the server starts OK, I do not see any difference to the URIs after that also. Is there any way to check the nodename in an running instance of EHRbase? How do I control the structure of the URIs

regards

Hey @Dileep_V_S! The mechanisms are the same like here: List of available override the application properties (like database settings) in EHRBase - #5 by jake.smolka

So you could change the node name with, for instance:

SERVER_NODENAME=test java -jar application-0.16.5.jar

And, just as a side note, to quickly check the result:

curl --header "PREFER: return=representation" \
        --request POST \
    http://localhost:8080/ehrbase/rest/openehr/v1/ehr | jq

Thank you. That works

regards