Bogdan Serban
10/04/2022, 10:05 AM/
, for instance /prefect/
. I am having an issue with loading the UI when I access <http://localhost/prefect/>
as the UI cannot load the corresponding assets, because it ignores the location prefix when doing the requests, for instance: <http://localhost/assets/index.1a4d60fb.js>
is available at <http://localhost/prefect/assets/index.1a4d60fb.js>
. Is there a way to specify a prefix or some sort of redirect URL for the UI to use when doing requests?Thomas Fredriksen
10/04/2022, 10:17 AMPREFECT_ORION_UI_API_URL
to <http://localhost/prefect/api>
?Bogdan Serban
10/04/2022, 10:20 AMThomas Fredriksen
10/04/2022, 10:25 AMBogdan Serban
10/04/2022, 10:27 AM/runs
, starting from localhost/prefect/
I am redirected to l localhost/runs
, instead of localhost/prefect/runs
Timo
10/24/2022, 11:23 AMThomas Fredriksen
10/24/2022, 12:13 PMapiVersion: <http://traefik.containo.us/v1alpha1|traefik.containo.us/v1alpha1>
kind: Middleware
metadata:
name: eas-prefect
namespace: prefect
spec:
forwardAuth:
address: >-
<https://external-auth-server.myhost.com/verify?fallback_plugin=0&config_token=CONFIG_TOKEN>
authResponseHeaders:
- X-Forwarded-User
- X-Forwarded-Uri
- X-Userinfo
- X-Id-Token
- X-Access-Token
- Authorization
trustForwardHeader: true
Timo
10/24/2022, 12:56 PMThomas Fredriksen
10/24/2022, 5:26 PM<http://myhost.com/path/to/prefect|myhost.com/path/to/prefect>
, then you will need to apply path stripping to /path/to/prefect
Timo
10/25/2022, 7:11 AM/prefect
path missing...
But configured the middleware as traefik label as following:
labels:
- "traefik.enable=true"
- "traefik.http.routers.prefectserver.rule=(Host(`bla.bla`) && PathPrefix(`/prefect`))"
- "traefik.http.middlewares.prefect-prefix.stripprefix.prefixes=/prefect"
- "traefik.http.middlewares.prefect-prefix.stripprefix.forceSlash=false"
- "traefik.http.routers.prefectserver.middlewares=prefect-prefix@docker"
Thomas Fredriksen
10/27/2022, 8:21 AM/prefect
-path?Timo
10/27/2022, 1:20 PM/prefect
path it works like a charm. But if I add the prefix and the stripping it doesn't get added to the static files somehow...Thomas Fredriksen
10/28/2022, 11:56 AMHost("<http://myhost.com|myhost.com>") && Headers("referer", "<http://myhost.com/prefect|myhost.com/prefect>")
Timo
10/28/2022, 2:22 PM<http://myhost.com|myhost.com>
) && Headers(referer
, <http://myhost.com/prefect|myhost.com/prefect>
)"`
This ends up in a 404 😞Thomas Fredriksen
10/28/2022, 3:54 PMorigin
instead of referer
. Also - is your PREFECT_ORION_UI_API_URL
environment variable set correctly?Timo
11/01/2022, 8:37 AMPREFECT_ORION_UI_API_URL
is set to "http://myhost.com/prefect". But even if I use "http://localhost/prefect/api" as suggested by you in another post it doesn't work.
If I use the pathprefix I can connect through CLI the only problem is, that I can't load the assets in the browser....Dylan McReynolds
11/04/2022, 10:14 PMTimo
11/28/2022, 2:22 PM