Hey everyone, has anyone tried fronting prefect ui using nginx? when prefixed with a different url than the root, the assets aren't properly fetched. is there any documentation on how to configure prefect behind a reverse proxy?
n
nicholas
10/26/2020, 5:16 PM
Hi @Charles Leung - which version of Prefect are you on and what behavior are you seeing?
c
Charles Leung
10/26/2020, 5:19 PM
0.13.5 - what i'm seeing is the ui rendering on the host: <host>:8080, but on the nginx route i see a blank page. <base-url>.com/<prefix> shows 404 for all the assets trying to fetch from <base-url>.com/<asset> instead of <base-url>.com/<preflix>/<asset>
n
nicholas
10/26/2020, 5:24 PM
Ah I see. Unfortunately it may not be possible for you to get this behavior out of the box because the UI assumes it's being served at a root-level directory - you can instead re-build the UI from source and modify the
publicPath
in
vue.config.js
to your subdirectory
For more information on that, take a look at the Vue docs