










const app = createApp({
apis,
components: {
SignInPage: props => (
<SignInPage
{...props}
auto
providers={[
'guest',
{
id: 'github-auth-provider',
title: 'GitHub',
message: 'Sign in using GitHub',
apiRef: githubAuthApiRef,
},
{
id: 'gitlab-auth-provider',
title: 'GitLab',
message: 'Sign in using GitHub',
apiRef: gitlabAuthApiRef,
},
]}
/>
),
},
...

需要安装github插件
backend:
reading:
allow:
- host: 192.168.xx.xx# 允许访问这个IP地址
- host: github.com # 通常已默认允许
- host: gitlab.com # 通常已默认允许

integrations:
github:
- host: github.com
# This is a Personal Access Token or PAT from GitHub. You can find out how to generate this token, and more information
# about setting up the GitHub integration here: https://backstage.io/docs/integrations/github/locations#configuration
token: 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
gitlab:
- host: 192.168.xx.xx
apiBaseUrl: http://192.168.xx.xx/api/v4
token: hW_qU_iE7GGgXwzf2hZy
第三方资源文件有变更后,可以直接刷新它,来更新backstage中的信息

此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。