Files
backstage/plugins/proxy-backend
Brian Fox 6c38f5e920 tests(proxy-backend): align tests with default backend configuration
The pathPrefix is not suffixed with `/` by default as noted at https://github.com/backstage/backstage/blob/df897a6126d1641d111b015c527cc8d40c47bd06/packages/backend-common/src/discovery/types.ts#L47 and seen in the implementation at  https://github.com/backstage/backstage/blob/df897a6126d1641d111b015c527cc8d40c47bd06/packages/backend-common/src/discovery/SingleHostDiscovery.ts#L81.

Currently the tests work in the opposite way - the pathPrefix is suffixed by / whereas the routes are **not** prefixed by /.

This commit brings the tests in line with the default configuration prior to any further work.

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.