Skip to content

[FEATURE] Support deployment under a subpath (basePath / base URL) #369

Description

@ducminhle

Is your feature request related to a problem?

LibreDB Studio currently appears to assume deployment at the root path (/). In environments where applications are published behind a reverse proxy using a path prefix, such as:

  • https://example.com/libredb
  • https://example.com/tools/libredb
  • https://example.com/~/libredb

routing, authentication redirects, static assets, API endpoints, and websocket connections may not work correctly.

This makes it difficult to deploy LibreDB Studio in organizations that standardize on path-based routing rather than dedicated subdomains.

Describe the solution you'd like

BASE_PATH=/libredb

or

BASE_URL=https://example.com/~/libredb

When configured, all routes, redirects, static assets, API endpoints, and websocket URLs should automatically respect the configured prefix.

Describe alternatives you've considered

  • Subdomain, but is not always possible in environments with DNS restrictions, centralized ingress configurations, or internal application portals that require path-based routing.

Use Case

  • Our environment hosts multiple self-hosted applications behind a single domain using a reverse proxy.
    Ex:
https://example.com/grafana
https://example.com/libredb

Additional Context

None

Implementation Notes (Optional)

None

Related Issues

None

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions