Under the hood, `http-proxy-middleware` checks its log level to see if
it should log requests. Passing in the log level ensures that we see
those messages when we run with `LOG_LEVEL=debug`.
Signed-off-by: Boris Bera <bbera@coveo.com>
in order to support proxying requests with bodies that have previously
been consumed in a middleware, the proxy config can now specify
`reviveRequestBody: true` in order to propagate the previously consumed
body to the proxied request.
Signed-off-by: Dan Hoizner <dan.hoizner@gmail.com>
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>
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>
* origin:
fix: ts
fix: forwardRef to SidebarItem
fix(cli): one more await in the test
backend-common: make loadBackendConfig return config directly and log all resolved app-configs
* 'master' of github.com:spotify/backstage: (110 commits)
chore(catalog-backend): removing redudant classes and some functions
chore(deps-dev): bump @types/webpack from 4.41.21 to 4.41.22 (#2765)
move codecov.yml to .github
feat(catalog-backend): add batch concurrency
create-app: remove build step
cli: simplify jest transform ignore regex
feat(catalog-backend): introduce batching, speed up reading and writing of large datasets
Techdocs: add Azure DevOps prepare support (#2748)
feat(techdocs-header): Show breadcrumbs on docs page (#2786)
changesets: add entry for create-app template location fix
create-app: revert to github location type for example templates
fix: make catalog filter work again
Use new url scheme for techdocs
feat: remove LocationProcessor.processEntity
Add Dockerfile for helm chart
feat: use the new UrlReader in the CodeOwnersProcessor
feat: use new UrlReader in PlaceholderProcessor
feat: remove the backstage.io/definition-at-location annotation
Update loud-lamps-visit.md
feat(proxy-backend): limit the forwarded http headers to a safe set
...