# How to declare root path for the temporal-web server?

**URL:** <https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920>\
**Category:** Community Support\
**Tags:** web-ui\
**Created:** [November 5, 2020, 3:30pm UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920 "2020-11-05T15:30:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![guntenbein](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/guntenbein/32/373_2.png) [@guntenbein](https://community.temporal.io/u/guntenbein)\
**Post date:** [November 5, 2020, 3:30pm UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/1 "2020-11-05T15:30:48Z")

</div>

We are using the temporal-web docker container to have the UI for our workflows. The server stays inside the internal network and has the proxy to be visible outside. It is supposed to run not from the root domain, but from a folder, for example, `http://api.company.com/temporal/`

I cannot find settings to define the temporal webroot so it tends to take the domain as the root. Could you please give a piece of advice about what can we do about this?

---

<div class="post-metadata">

**Author:** ![swyx](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/swyx/32/210_2.png) [@swyx](https://community.temporal.io/u/swyx)\
**Post date:** [November 6, 2020, 12:22am UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/3 "2020-11-06T00:22:09Z")

</div>

hey guntenbein! to be honest i’m not sure we have this feature - @ruslan will be able to tell you for sure.

i’ve filed a feature request in the meantime. [https://github.com/temporalio/web/issues/179](https://github.com/temporalio/web/issues/179) if you feel comfortable with nodejs and koa, you may try editing [this line](https://github.com/temporalio/web/blob/78e1b81c62c4cb1b8ba49f76e8f5c827334726d4/webpack.config.js#L28) to reflect your /temporal path. (i’m not sure it will fully solve the solution, but its probably a good start)

---

<div class="post-metadata">

**Author:** ![Ruslan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ruslan/32/66_2.png) [@Ruslan](https://community.temporal.io/u/Ruslan)\
**Post date:** [November 6, 2020, 7:08pm UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/4 "2020-11-06T19:08:30Z")

</div>

@guntenbein  
Do you plan to run several apps(temporal web ui, other apps) under various subfolders of [http://api.company.com/](http://api.company.com/) ?

My understanding is that you want a root server that would serve [http://api.company.com/](http://api.company.com/) and it would forward the connection from a subfolder to the app you want (address:port). Some more data on this [https://stackoverflow.com/questions/56645055/how-to-run-local-node-server-on-subfolder](https://stackoverflow.com/questions/56645055/how-to-run-local-node-server-on-subfolder)

Does this answer the question?

---

<div class="post-metadata">

**Author:** ![guntenbein](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/guntenbein/32/373_2.png) [@guntenbein](https://community.temporal.io/u/guntenbein)\
**Post date:** [November 9, 2020, 2:06pm UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/5 "2020-11-09T14:06:50Z")

</div>

Hi! Thanks! Not exactly. There is no problem with forwarding [http://api.company.com/temporal/](http://api.company.com/temporal/) to the root of the Temporal UI. But the Temporal uses the root domain and it ignores the folder but tries to load everything (including the hyperlinks) from [http://api.company.com/](http://api.company.com/) As a result, the UI does not work.

There is no env variable ROOT\_FLODER that would simplify the setting a lot.

---

<div class="post-metadata">

**Author:** ![Ruslan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ruslan/32/66_2.png) [@Ruslan](https://community.temporal.io/u/Ruslan)\
**Post date:** [November 9, 2020, 4:01pm UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/6 "2020-11-09T16:01:14Z")

</div>

makes sense. Let’s follow in the opened github issue. As the feature is done i’ll add a note here to close this ticket

---

<div class="post-metadata">

**Author:** ![swyx](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/swyx/32/210_2.png) [@swyx](https://community.temporal.io/u/swyx)\
**Post date:** [January 19, 2021, 5:13pm UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/7 "2021-01-19T17:13:32Z")

</div>

hey guntenbein! update, this feature is now merged and released: [Make public path configurable via an environment variable by jeromefroe · Pull Request #203 · temporalio/web · GitHub](https://github.com/temporalio/web/pull/203)

you can set TEMPORAL\_WEB\_ROOT\_PATH now.

---

<div class="post-metadata">

**Author:** ![guntenbein](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/guntenbein/32/373_2.png) [@guntenbein](https://community.temporal.io/u/guntenbein)\
**Post date:** [January 20, 2021, 6:46pm UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/8 "2021-01-20T18:46:11Z")

</div>

@ [swyx](https://community.temporal.io/u/swyx) Thanks a lot! We will check it out with the next occasion.

---

<div class="post-metadata">

**Author:** ![Ruslan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/ruslan/32/66_2.png) [@Ruslan](https://community.temporal.io/u/Ruslan)\
**Post date:** [January 26, 2021, 2:00am UTC](https://community.temporal.io/t/how-to-declare-root-path-for-the-temporal-web-server/920/9 "2021-01-26T02:00:04Z")

</div>

Closed on January 26, 2021, 2:00am UTC

This topic was automatically closed after 6 days. New replies are no longer allowed.
