Files
backstage/plugins/proxy-backend
Brian Fox cdb3426e56 fix(proxy-backend): prefix routes with / if not present in config
This commit ensures that the default `pathRewrite` configuration for a proxy element is more resilient to the combination of whether:
- `route` is prefixed with `/`
- `pathPrefix` on the plugin is suffixed with `/` (which at present it will never be - see comments).

Signed-off-by: Brian Fox <brianhfox@gmail.com>
2021-04-27 12:40:15 +02:00
..
2021-03-18 12:31:44 +00:00
2020-08-28 14:36:13 +02:00

Proxy backend plugin

This is the backend plugin that enables proxy definitions to be declared in, and read from, app-config.yaml.

Relies on the http-proxy-middleware package.

Getting Started

This backend plugin can be started in a standalone mode from directly in this package with yarn start. However, it will have limited functionality and that process is most convenient when developing the plugin itself.

The proxy is already installed in the Backstage backend per default, so you can also start up the full example backend to experiment with the proxy.

yarn workspace example-backend start

Configuration

See the proxy docs.