Files
backstage/plugins/proxy-backend
Crevil a4fa1ce090 Add config hot reloading to proxy-backend
When working with the proxy configuration or plugins facilitating the proxy
package the workflow is currently somewhat cumbersom as changes to the proxy
configuration requires a full restart of the backend server.

Use cases where the proxy configuration is updated is when testing out new
routes for plugins to use and updating header configuration like authorization
tokens.

This change updates the proxy-backend to subscribe to configuration changes and
update the router when changes to the proxy is made.

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2022-07-02 09:24:33 +02:00
..
2022-03-07 10:15:54 +00:00
2022-06-21 09:04:17 +00:00
2021-06-18 20:26:42 +02:00
2022-06-28 09:27:36 +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.