# Setting custom server node name

**URL:** <https://discourse.openehr.org/t/setting-custom-server-node-name/1586>\
**Category:** Platform\
**Tags:** ehrbase\
**Created:** [30 May 2021 11:11 UTC](https://discourse.openehr.org/t/setting-custom-server-node-name/1586 "2021-05-30T11:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dileep\_V\_S](https://discourse.openehr.org/user_avatar/discourse.openehr.org/dileep_v_s/32/664_2.png) [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Post date:** [30 May 2021 11:11 UTC](https://discourse.openehr.org/t/setting-custom-server-node-name/1586/1 "2021-05-30T11:11:23Z")

</div>

By default EHRBase seems to add [local.ehrbase.org](http://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

---

<div class="post-metadata">

**Author:** ![jake.smolka](https://discourse.openehr.org/user_avatar/discourse.openehr.org/jake.smolka/32/2870_2.png) [@jake.smolka](https://discourse.openehr.org/u/jake.smolka)\
**Post date:** [31 May 2021 10:37 UTC](https://discourse.openehr.org/t/setting-custom-server-node-name/1586/2 "2021-05-31T10:37:31Z")

</div>

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](https://discourse.openehr.org/t/list-of-available-override-the-application-properties-like-database-settings-in-ehrbase/1580/5)

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

```bash
SERVER_NODENAME=test java -jar application-0.16.5.jar

```

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

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

```

---

<div class="post-metadata">

**Author:** ![Dileep\_V\_S](https://discourse.openehr.org/user_avatar/discourse.openehr.org/dileep_v_s/32/664_2.png) [@Dileep\_V\_S](https://discourse.openehr.org/u/Dileep_V_S)\
**Post date:** [31 May 2021 11:02 UTC](https://discourse.openehr.org/t/setting-custom-server-node-name/1586/3 "2021-05-31T11:02:09Z")

</div>

Thank you. That works

regards
