You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to find a similar issue and didn't find it.
I searched the Prefect documentation for this issue.
I checked that this issue is related to Prefect and not one of its dependencies.
Bug summary
I am running Prefect in a Kubernetes cluster behind an nginx reverse proxy and when setting the PREFECT_UI_SERVE_BASE setting the UI base path is updated but api base path is not, resulting in a rendered UI with no flow content. Additionally, updating the PREFECT_UI_API_URL setting changes what path the UI requests but not the path the api is actually served under.
Reproduction
1.InstallPrefect1.Applysettings`PREFECT_UI_SERVE_BASE=/root/`and`PREFECT_UI_API_URL=localhost:4200/root/api`1.Run`prefect server start`1.Browsetolocalprefectserverat`localhost:4200/root`TheUIrendersandapirequestsaresentto`localhost:4200/root/api`butfail (arebeingservedfrom`localhost:4200/api`)
Error
No response
Versions
Version: 2.16.0
API version: 0.8.4
Python version: 3.11.8
Git commit: 17f42e9d
Built: Thu, Feb 22, 2024 3:45 PM
OS/Arch: linux/x86_64
Profile: default
Server type: server
Came across this recently. I'm currently rewriting prefix/api to /api using traefik rules. I agree it would be useful to have support for configuring the api to run at a path prefix too.
First check
Bug summary
I am running Prefect in a Kubernetes cluster behind an nginx reverse proxy and when setting the
PREFECT_UI_SERVE_BASE
setting the UI base path is updated but api base path is not, resulting in a rendered UI with no flow content. Additionally, updating thePREFECT_UI_API_URL
setting changes what path the UI requests but not the path the api is actually served under.Reproduction
Error
No response
Versions
Additional context
Could potentially be solved by passing a configurable
root_path
argument to the FastAPIapi_app
object if available from settings herehttps://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/api/server.py#L615
Related to #11472
The text was updated successfully, but these errors were encountered: