Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/plugin-proxy-backend

Package Overview
Dependencies
Maintainers
4
Versions
1181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/plugin-proxy-backend

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

  • 0.1.1-alpha.19
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48K
increased by10.58%
Maintainers
4
Weekly downloads
 
Created
Source

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.

To run it within the backend do:

  1. Register the router in packages/backend/src/index.ts:
const proxyEnv = useHotMemoize(module, () => createEnv('proxy'));

const service = createServiceBuilder(module)
  .loadConfig(configReader)
  /** several different routers */
  .addRouter('/', await proxy(proxyEnv));
  1. Start the backend
yarn workspace example-backend start

This will launch the full example backend.

  • http-proxy-middleware

FAQs

Package last updated on 22 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc