Markel Flores

01/19/2023, 11:32 AM
Hello everybody. We're in the process of integrating Prefect as part of a project in a microservice arch. We usually have a personalized frontend served with Nginx and all the other services available at subpaths, say '/api' or '/analytics'. Thing is, we want to serve Prefect Orion UI at '/prefect', but we haven't found the way to do it. We usually configure a proxy pass to the microservice container like this:
Copy code
location /prefect {
	resolver valid=10s;
	set $upstream_prefect orion;
	proxy_pass http://$upstream_prefect:4200;
and let the microservice know that it is being accessed through a subpath using an environment variable.