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

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?

1 Like

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 if you feel comfortable with nodejs and koa, you may try editing this line to reflect your /temporal path. (i’m not sure it will fully solve the solution, but its probably a good start)

1 Like

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

My understanding is that you want a root server that would serve 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

Does this answer the question?

1 Like

Hi! Thanks! Not exactly. There is no problem with forwarding 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/ As a result, the UI does not work.

There is no env variable ROOT_FLODER that would simplify the setting a lot.

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

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

you can set TEMPORAL_WEB_ROOT_PATH now.

@ swyx Thanks a lot! We will check it out with the next occasion.

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