0.1.0 • Published 8 months ago

@facets-cloud/backstage-plugin-backend v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

@facets-cloud/backstage-plugin-backend

@facets-cloud/backstage-plugin-backend is a plugin for the Backstage backend app. It provides a route that @facets-cloud/backstage-plugin will use to connect to Facets.cloud API.

Installation

  1. Install @facets-cloud/backstage-plugin-backend plugin with,
yarn workspace backend add @facets-cloud/backstage-plugin-backend
  1. Add the plugin in ./packages/backend/src/index.ts to your backend,
+ backend.add(import('@facets-cloud/backstage-plugin-backend'));

backend.start();
  1. Add proxy and facets-cloud configuration to app-config.yaml. Note that adding auth in config is not recommended and it should be configured at user level in Facets.cloud settings. If there is no auth configured for user, and there is auth configured in app-config.yaml, this common authentication will be used for making api calls to Facets.cloud
proxy:
  endpoints:
    '/facets/api':
      target: ${FACETS_CONTROL_PLANE_URL}

facets-cloud:
  controlPlaneUrl: ${FACETS_CONTROL_PLANE_URL}
  auth:
    username: ${FACETS_USER_NAME}
    accessToken: ${FACETS_ACCESS_TOKEN}