Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions plugins/endoflife/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ endOfLife:
You can use markdown if you like
```

### Base Url

If you're hosting a local End of Life instance, configure the base url to your service in the `app-config.yaml`

```yaml
endOfLife:
baseUrl: https://endoflife.mycompany.com
```

## Troubleshooting

### Behavior 'endoflife.date/products': angular
Expand Down
7 changes: 7 additions & 0 deletions plugins/endoflife/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ export interface Config {
* @visibility frontend
*/
helpText?: string;
/**
* Url of the end-of-life service
* @visibility frontend
*
* @default https://endoflife.date
*/
baseUrl? string;
};
}
6 changes: 4 additions & 2 deletions plugins/endoflife/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
discoveryApiRef,
fetchApiRef,
identityApiRef,
configApiRef,
} from '@backstage/core-plugin-api';
import { rootRouteRef } from './routes';
import { endOfLifeApiRef, EndOfLifeClient } from './api';
Expand All @@ -19,10 +20,11 @@ export const endOfLifePlugin = createPlugin({
discoveryApi: discoveryApiRef,
fetchApi: fetchApiRef,
identityApi: identityApiRef,
configApi: configApiRef,
},
factory({ discoveryApi, fetchApi, identityApi }) {
factory({ discoveryApi, fetchApi, identityApi, configApi }) {
return new EndOfLifeClient({
baseUrl: 'https://endoflife.date',
baseUrl: configApi.getOptionalString('endOfLife.baseUrl') ?? 'https://endoflife.date',
discoveryApi,
fetchApi,
identityApi,
Expand Down
Loading