From ebfc845b999751a6b63cefc49defb769ecd2ba6d Mon Sep 17 00:00:00 2001 From: Andrew Thal Date: Tue, 23 Feb 2021 12:07:48 -0500 Subject: [PATCH] Update Pagerduty setup instructions Signed-off-by: GitHub --- plugins/pagerduty/README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/plugins/pagerduty/README.md b/plugins/pagerduty/README.md index 0e5d75d41c..db34908050 100644 --- a/plugins/pagerduty/README.md +++ b/plugins/pagerduty/README.md @@ -28,12 +28,12 @@ Add it to the app in `plugins.ts`: export { plugin as Pagerduty } from '@backstage/plugin-pagerduty'; ``` -Add it to the `EntityPage.ts`: +Add it to the `EntityPage.tsx`: ```ts import { isPluginApplicableToEntity as isPagerDutyAvailable, - PagerDutyCard, + EntityPagerDutyCard, } from '@backstage/plugin-pagerduty'; // add to code { @@ -45,6 +45,18 @@ import { } ``` +Add the proxy configuration in `app-config.yaml` + +```yaml +proxy: + ... + '/pagerduty': + target: https://api.pagerduty.com + headers: + Authorization: + $env: PAGERDUTY_TOKEN +``` + ## Client configuration If you want to override the default URL for events, you can add it to `app-config.yaml`.