6.3. 使用自定义服务自定义学习路径
对于高级场景,您可以托管 Red Hat Developer Hub 自定义服务,以为所有可配置的 Developer Hub 页面(如学习路径)提供数据。您甚至可以为每个页面使用不同的服务。
流程
-
在与 Developer Hub 实例相同的 OpenShift Container Platform 集群上部署 Developer Hub 自定义服务。您可以在
red-hat-developer-hub-customization-provider中找到一个示例,它提供与默认 Developer Hub 数据相同的数据。自定义服务提供学习路径数据 URL,例如:http:// <rhdh-customization-provider> / learning-paths。 将 Developer Hub 代理配置为使用您的专用服务来提供学习路径数据,将以下内容添加到
app-config.yaml文件中 :proxy: endpoints: '/developer-hub/learning-paths': target: <learning_path_data_url> changeOrigin: true qsecure: true1 - 1
- 当使用自签名证书的自托管集群时,请更改为 "false"