deployment

No menu items for this category
OpenMetadata Documentation

Subpath in OpenMetadata

To configure OpenMetadata to operate under a subpath (e.g., /openmetadata)—useful when deploying behind a reverse proxy or load balancer—you need to adjust specific settings in the openmetadata.yaml configuration file.


Define the basePath parameter to configure the application's root context, and ensure that the publicKeyUrl is updated accordingly to reflect the new base path.

This sets the root context for the application.

This configuration sets the base path to /openmetadata by default. You can override it by setting the BASE_PATH environment variable.

Adjust the web-related paths to align with the specified base path.

  • applicationContextPath: Defines the context path for the web application.
  • rootPath: Specifies the root path for API endpoints. GitHub

Ensure that asset paths are correctly prefixed with the base path.

  • resourcePath: Path to static resources.
  • uriPath: URI path prefix for assets.

Here's how the relevant section of your openmetadata.yaml might look:

  • Reverse Proxy Configuration: Ensure that your reverse proxy (e.g., NGINX, Apache) is configured to forward requests to the OpenMetadata application with the correct subpath.

  • Environment Variables: You can override the default base path by setting the BASE_PATH environment variable in your deployment environment. Ensure that related parameters such as basePath, applicationContextPath, rootPath, and publicKeyUrl are updated to reflect this change.

  • Static Assets: Verify that static assets are accessible under the new subpath to prevent broken links or missing resources.