Merge pull request #9225 from RoadieHQ/softer-proxy-startup

allow backend to start if proxy target is not set
This commit is contained in:
Johan Haals
2022-01-31 10:54:41 +01:00
committed by GitHub
3 changed files with 127 additions and 18 deletions
+26
View File
@@ -0,0 +1,26 @@
---
'@backstage/plugin-proxy-backend': patch
---
Adds a new option `skipInvalidTargets` for the proxy `createRouter` which allows the proxy backend to be started with an invalid proxy configuration. If configured, it will simply skip the failed proxy and mount the other valid proxies.
To configure it to pass by failing proxies:
```
const router = await createRouter({
config,
logger,
discovery,
skipInvalidProxies: true,
});
```
If you would like it to fail if a proxy is configured badly:
```
const router = await createRouter({
config,
logger,
discovery,
});
```