Configure a path prefix for River UI #231
-
Hello! I am deploying an instance of Riverqueue in another service. Since I now have two separate microservices using Riverqueue I created two separate databases in Postgres since we need to be able to upgrade Riverqueue in each service independently of the other. Hence, the database migrations for Riverqueue need to happen at different points in time and the services might run with different migration versions which is why I created a separate Riverqueue database for the other service. Now I want to deploy a River UI for the new service and thought I could use the same URL host but different path prefix for the different instances if the River UI
In Kubernetes I have added a rewrite of HTTP requests to I assume that the short term solution is to use separate host names for service a and b which would be a workaround:
But would be nice with the possibility to have one host with different path prefixes. Would it be easy to make that configurable? I assume that you would not only specify the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm not sure I understand the issue you're running into. River UI supports a path prefix option via any of the supported runtime options (docker, executable, or Go embed via the |
Beta Was this translation helpful? Give feedback.
I'm not sure I understand the issue you're running into. River UI supports a path prefix option via any of the supported runtime options (docker, executable, or Go embed via the
Prefix
option). So you could embed this in another Go application with as many copies of River UI as you want, each with a different path prefix. When doing so, the UI also makes requests to the appropriate sub-path.