Skip to content

feat(ui): serve optional extra UI from /ui volume#2206

Open
vinicius73 wants to merge 1 commit intoAlexxIT:masterfrom
vinicius73:feature/custom-ui
Open

feat(ui): serve optional extra UI from /ui volume#2206
vinicius73 wants to merge 1 commit intoAlexxIT:masterfrom
vinicius73:feature/custom-ui

Conversation

@vinicius73
Copy link
Copy Markdown

This pull request adds support for serving an additional static web UI from a local directory, making it easier to provide custom web interfaces alongside the built-in HTTP API. The feature is configurable via ui.dir, includes Docker support, and is documented with usage and configuration details.

This approach makes it possible to host a custom UI alongside the Docker container without adding overhead or unnecessary complexity to the existing UI, which already fulfills its purpose well. It also creates room for parallel projects to build solutions and experiences that are better tailored to their specific needs without disrupting the current foundation. At the same time, it keeps those solutions straightforward to adopt and accessible to a broader audience.

Extra UI feature:

  • Added a new ui module (internal/ui/ui.go) that serves static files from a configurable directory (ui.dir) at the /ui/ path, with support for disabling or customizing the directory.
  • Registered the ui module in the application startup sequence (main.go) so it is initialized with other modules. [1] [2]

Documentation updates:

  • Updated README.md to document the new Extra UI feature, including configuration options and security notes. [1] [2]
  • Added ui module to the list of modules/features in the summary table in README.md.
  • Added a section to docker/README.md explaining how to mount a local directory for the extra UI in Docker deployments, with usage examples.

Add a new optional UI module that serves a mounted static directory at /ui/
(respecting api.base_path). Document usage and declare /ui as a Docker volume,
plus a basic HTTP healthcheck for the container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant