Update README.md

Signed-off-by: Andrew Thal <andrewthal88@gmail.com>
This commit is contained in:
Andrew Thal
2021-03-03 09:27:58 -05:00
parent ebfc845b99
commit 8ab12ecd87
+12 -12
View File
@@ -45,18 +45,6 @@ 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`.
@@ -72,6 +60,18 @@ pagerduty:
In order for the client to make requests to the [PagerDuty API](https://developer.pagerduty.com/docs/rest-api-v2/rest-api/) it needs an [API Token](https://support.pagerduty.com/docs/generating-api-keys#generating-a-general-access-rest-api-key).
Add the proxy configuration in `app-config.yaml`
```yaml
proxy:
...
'/pagerduty':
target: https://api.pagerduty.com
headers:
Authorization: Token token=${PAGERDUTY_TOKEN}
```
Then start the backend passing the token as an environment variable:
```bash