Skip to content

Instantly share code, notes, and snippets.

@gashcrumb
Created April 2, 2024 18:09
Show Gist options
  • Save gashcrumb/7e315148624066277f712470be295f9e to your computer and use it in GitHub Desktop.
Save gashcrumb/7e315148624066277f712470be295f9e to your computer and use it in GitHub Desktop.
auth:
environment: development
providers:
github:
development:
clientId: ${AUTH_GITHUB_CLIENT_ID}
clientSecret: ${AUTH_GITHUB_CLIENT_SECRET}
app:
baseUrl: http://lanky:3000
analytics:
segment:
testMode: true
writeKey: temp
maskIp: true
backend:
baseUrl: http://lanky:7007
listen:
port: 7007
host: 0.0.0.0
cors:
origin: http://lanky:3000
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true
csp:
script-src:
- '''self'''
- '''unsafe-eval'''
- 'https://cdn.segment.com'
auth:
keys:
- secret: temp
techdocs:
builder: 'local'
generator:
runIn: 'local'
publisher:
type: 'local'
local:
publishDirectory: /home/gashcrumb/tmp/techdocs
baseUrl: 'http://localhost:80'
#kubernetes:
# customResources:
# - group: 'tekton.dev'
# apiVersion: 'v1'
# plural: 'pipelines'
# - group: 'tekton.dev'
# apiVersion: 'v1'
# plural: 'pipelineruns'
# - group: 'tekton.dev'
# apiVersion: 'v1'
# plural: 'taskruns'
# - group: 'org.eclipse.che'
# apiVersion: 'v2'
# plural: 'checlusters'
# serviceLocatorMethod:
# type: 'multiTenant'
# clusterLocatorMethods:
# - type: 'config'
# clusters:
# - name: crc
# url: https://api.crc.testing:6443
# authProvider: 'serviceAccount'
# skipTLSVerify: true
# serviceAccountToken: ${CLUSTER_SECRET}
dynamicPlugins:
frontend:
'@internal/plugin-dynamic-plugins-infos':
dynamicRoutes:
- path: /admin/plugins
importName: DynamicPluginsInfo
mountPoints:
- mountPoint: admin.page.plugins/cards
importName: DynamicPluginsInfo
config:
layout:
gridColumn: "1 / -1"
width: 50vw
# RBAC plugin original configuration
# janus-idp.backstage-plugin-rbac:
# appIcons:
# - name: AdminPanelSettingsOutlinedIcon
# module: RbacPlugin
# importName: AdminPanelSettingsOutlinedIcon
# dynamicRoutes:
# - path: /rbac
# importName: RbacPage
# module: RbacPlugin
# menuItem:
# icon: AdminPanelSettingsOutlinedIcon
# text: Administration
# RBAC page in the app-provided Administration page
janus-idp.backstage-plugin-rbac:
dynamicRoutes:
- path: /admin/rbac
module: RbacPlugin
importName: RbacPage
mountPoints:
- mountPoint: admin.page.rbac/cards
module: RbacPlugin
importName: RbacPage
config:
layout:
gridColumn: "1 / -1"
width: 100vw
props:
useHeader: false
backstage.plugin-techdocs:
routeBindings:
targets:
- importName: techdocsPlugin
bindings:
- bindTarget: catalogPlugin.externalRoutes
bindMap:
viewTechDoc: techdocsPlugin.routes.docRoot
- bindTarget: scaffolderPlugin.externalRoutes
bindMap:
viewTechDoc: techdocsPlugin.routes.docRoot
dynamicRoutes:
- path: /docs
importName: TechDocsIndexPage
menuItem:
icon: docs
text: Docs
- path: /docs/:namespace/:kind/:name/*
importName: TechDocsReaderPage
mountPoints:
- mountPoint: entity.page.docs/cards
importName: EntityTechdocsContent
config:
layout:
gridColumn: "1 / -1"
if:
allOf:
- isTechDocsAvailable
- mountPoint: search.page.results
importName: TechDocsSearchResultListItem
- mountPoint: search.page.filters
importName: TechdocsSearchFilter
- mountPoint: search.page.types
importName: techdocsSearchType
config:
props:
name: Documentation
icon: docs
# janus-idp.backstage-plugin-topology:
# mountPoints:
# - mountPoint: entity.page.topology/cards
# importName: TopologyPage
# config:
# layout:
# gridColumn: "1 / -1"
# height: 75vh
# if:
# anyOf:
# - hasAnnotation: backstage.io/kubernetes-id
# - hasAnnotation: backstage.io/kubernetes-namespace
# backstage.plugin-kubernetes:
# mountPoints:
# - mountPoint: entity.page.kubernetes/cards
# importName: EntityKubernetesContent
# config:
# layout:
# gridColumn: "1 / -1"
# if:
# anyOf:
# - hasAnnotation: backstage.io/kubernetes-id
# - hasAnnotation: backstage.io/kubernetes-namespace
# RBAC placeholder
# janus-idp.backstage-plugin-simple-test-components:
# dynamicRoutes:
# - path: /admin/rbac
# importName: SimpleTestComponentsPage
# mountPoints:
# - mountPoint: admin.page.rbac/cards
# importName: SimpleTestComponentsPage
# config:
# layout:
# gridColumn: "1 / -1"
# width: 100vw
# props:
# text: 'RBAC tab content would be here'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment