Skip to content

feat: add ui.path config option for serving UI/API behind a proxy#1034

Merged
tristanmorgan merged 3 commits into
fabiolb:masterfrom
maciej-lech:feature/ui-base-path
Apr 21, 2026
Merged

feat: add ui.path config option for serving UI/API behind a proxy#1034
tristanmorgan merged 3 commits into
fabiolb:masterfrom
maciej-lech:feature/ui-base-path

Conversation

@maciej-lech

Copy link
Copy Markdown
Contributor

Summary

Adds a new ui.path configuration 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 /routes instead of /fabio/routes, and all asset/API paths fail.

Usage

ui.path = /fabio
fabio -ui.path /fabio

Then the UI is accessible at http://localhost:9998/fabio/routes

When ui.path is not set, behavior is unchanged.

@maciej-lech maciej-lech requested a review from a team as a code owner April 20, 2026 09:40
@CLAassistant

CLAassistant commented Apr 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread admin/server.go Outdated
@maciej-lech maciej-lech force-pushed the feature/ui-base-path branch from 1ba4ed5 to 5385e68 Compare April 21, 2026 06:06
Comment thread admin/server_test.go Outdated

@tristanmorgan tristanmorgan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for you contribution and patience.

@tristanmorgan tristanmorgan merged commit 7b4eec5 into fabiolb:master Apr 21, 2026
2 checks passed
@maciej-lech maciej-lech deleted the feature/ui-base-path branch April 21, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support different base path for UI/API

3 participants