Skip to content

Support for serving cloudprober UI under a subpath #1024

Closed

Description

@edbertlinardi

When serving the Cloudprober UI behind a reverse proxy, sometimes I have to access it through a subpath rather than the root path, such as example.com/cloudprober/.

This is useful when I need to share a domain with other services.

Currently, the Cloudprober UI is unaware of the base path that was used to access it. This causes UI navigation to break as redirects lose their path prefix.

One way to solve this is to add a config option to specify a base path for the UI, such as --web-ui-base-path=/cloudprober/.

With this configuration, the UI is served under the specified path (e.g. /cloudprober/), and all generated URLs and redirects would automatically include this base path. Path rewriting won't be necessary in the proxy configuration.

Activity

  1. added
    enhancement
    on Mar 3, 2025
  2. added this to the v0.14.0 milestone on Mar 4, 2025
  3. manugarg commented on Mar 4, 2025

    @manugarg
    Contributor

    #1025 fixes the links issue without requiring any other flag or config. I think we can skip fixing the redirect requirement because that's just a convenience thing for the most part, or we can just an HTML/JS redirect for those cases.

  4. manugarg commented on Mar 5, 2025

    @manugarg
    Contributor

    #1028 solves redirects as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions