https://prefect.io logo
#prefect-ui
Title
# prefect-ui
f

Fabian Venga

06/01/2022, 11:16 AM
👋 Hello 🙂 That would be a question for prefect 2.0. Is there a possibility to change the
base_url
? I’m “need” to run the UI on a certain path (
<http://mydomain.es/orion-ui|mydomain.es/orion-ui>
) and it seems that the assets (json etc.) are being loaded from
<http://mydomain.es|mydomain.es>
, which returns a 404 “obviously”. I believe the
base_url
is set here, so it doesn’t look at least at it were changeable. Am I missing something?
a

Anna Geller

06/01/2022, 1:34 PM
yes, there is!
Copy code
prefect config set PREFECT_ORION_UI_API_URL="<http://your_host_ip:4200/api>"
f

Fabian Venga

06/01/2022, 1:57 PM
Thanks Anna! I tried
prefect config set PREFECT_ORION_UI_API_URL="<http://mydomain.es/orion-ui/api>"
which doesn’t fix it. I must mentioned that the api routes themselves work fine (like
<http://mydomain.es/orion-ui/api/admin/settings|mydomain.es/orion-ui/api/admin/settings>
)
a

Anna Geller

06/01/2022, 2:00 PM
the intended use was to use the host IP address or main domain:
Copy code
prefect config set PREFECT_ORION_UI_API_URL="<http://mydomain.es:4200/api>"
no DNS expert though
🙌 1
f

Fabian Venga

06/01/2022, 2:05 PM
I see your point 🙂 I’ll try to work around it with a reverse proxy. Let’s see how that goes!
👍 1