feat: add ui.path config option for serving UI/API behind a proxy#1034
Merged
Conversation
tristanmorgan
requested changes
Apr 21, 2026
1ba4ed5 to
5385e68
Compare
tristanmorgan
approved these changes
Apr 21, 2026
tristanmorgan
left a comment
Member
There was a problem hiding this comment.
Thank you for you contribution and patience.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
ui.pathconfiguration option that sets a base path prefix for all UI and API routes. This allows fabio's admin interface to be served behind a reverse proxy at a sub-path.Closes #323
Motivation
Currently all admin UI and API routes are hardcoded to the root path (
/). When fabio is placed behind a reverse proxy (or proxying itself) at a sub-path like/fabio, the UI breaks - it redirects to/routesinstead of/fabio/routes, and all asset/API paths fail.Usage
ui.path = /fabioThen the UI is accessible at http://localhost:9998/fabio/routes
When ui.path is not set, behavior is unchanged.