|
| 1 | +[id='proc-customizing-rhdh-tech-radar-page-by-using-a-customization-service_{context}'] |
| 2 | += Customizing the Tech Radar page by using a customization service |
| 3 | + |
| 4 | +For advanced scenarios, you can host your {product} customization service to provide data to all configurable {product-short} pages, such as the Tech Radar page. |
| 5 | +You can even use a different service for each page. |
| 6 | + |
| 7 | +.Prerequisites |
| 8 | +* You have specified the data sources for the Tech Radar plugin in the `integrations` section of the `{my-app-config-file}` file. |
| 9 | +For example, to configure GitHub as an integration, see link:{authentication-book-url}#authenticating-with-github[Authenticating with GitHub]. |
| 10 | + |
| 11 | +* You have enabled the `./dynamic-plugins/dist/backstage-community-plugin-tech-radar` and `/dynamic-plugins/dist/backstage-community-plugin-tech-radar-backend-dynamic` plugins. |
| 12 | + |
| 13 | +.Procedure |
| 14 | +. Deploy your {product-short} customization service on the same {ocp-short} cluster as your {product-short} instance. |
| 15 | +You can find an example at link:https://github.com/redhat-developer/red-hat-developer-hub-customization-provider[`red-hat-developer-hub-customization-provider`], that provides the same data as default {product-short} data. |
| 16 | +The customization service provides a Tech Radar data URL such as: `pass:c,a,q[http://_<rhdh-customization-provider>_/tech-radar]`. |
| 17 | + |
| 18 | +. Add the dedicated service as an allowed host by adding the following code to the `{my-app-config-file}` file: |
| 19 | ++ |
| 20 | +[source,yaml,subs='+quotes'] |
| 21 | +---- |
| 22 | +backend: |
| 23 | + reading: |
| 24 | + allow: |
| 25 | + - host: '_<rhdh_customization_provider_base_url>_' |
| 26 | +---- |
| 27 | +`_<rhdh_customization_provider_base_url>_`:: Enter the base URL of your Tech Radar data URL, such as: `pass:c,a,q[_<rhdh-customization-provider>_]`. |
| 28 | + |
| 29 | +. Add the following to the `{my-app-config-file}` file: |
| 30 | ++ |
| 31 | +[source,yaml,subs='+quotes'] |
| 32 | +---- |
| 33 | +techRadar: |
| 34 | + url: _<tech_radar_data_url>_ |
| 35 | +---- |
| 36 | + |
| 37 | +`_<tech_radar_data_url>_`:: Enter your Tech Radar data URL, such as: `pass:c,a,q[http://_<rhdh-customization-provider>_/tech-radar]`. |
0 commit comments