0.1.0 • Published 8 months ago
@facets-cloud/backstage-plugin-backend v0.1.0
@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
- Install
@facets-cloud/backstage-plugin-backend
plugin with,
yarn workspace backend add @facets-cloud/backstage-plugin-backend
- Add the plugin in
./packages/backend/src/index.ts
to your backend,
+ backend.add(import('@facets-cloud/backstage-plugin-backend'));
backend.start();
- Add
proxy
andfacets-cloud
configuration toapp-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 inapp-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}
0.1.0
8 months ago