backstage-demo-janus-showcase/app-config.yaml
Med Mouine 089a1cd890 config
2024-04-18 10:23:04 -04:00

125 lines
4.2 KiB
YAML

app:
baseUrl: http://localhost:3000
organization:
name: Sreez
backend:
reading:
allow:
- host: backstage-plugin-vela.vela-system:8080 # Required, change this to the endpoint of the connector
- host: raw.githubusercontent.com # Optional
- host: kubevela.io # Optional
- host: kubevela.net # Optional
# Used for enabling authentication, secret is shared by all backend plugins
# See https://backstage.io/docs/auth/service-to-service-auth for
# information on the format
# auth:
# keys:
# - secret: ${BACKEND_SECRET}
baseUrl: http://localhost:7007
listen:
port: 7007
# Uncomment the following host directive to bind to specific interfaces
# host: 127.0.0.1
csp:
connect-src: ["'self'", "http:", "https:"]
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
# Default Helmet Content-Security-Policy values can be removed by setting the key to false
cors:
origin: http://localhost:3000
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true
# This is for local development only, it is not recommended to use this in production
# The production database configuration is stored in app-config.production.yaml
database:
client: better-sqlite3
connection: ":memory:"
# workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir
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: ${GITHUB_TOKEN}
### Example for how to add your GitHub Enterprise instance using the API:
# - host: ghe.example.net
# apiBaseUrl: https://ghe.example.net/api/v3
# token: ${GHE_TOKEN}
argocd:
baseUrl: 'https://argocd-server-sreez.apps.oc-med.wk.nt.local'
proxy:
endpoints:
"/grafana/api":
target: ${GRAFANA_URL}
headers:
Authorization: Bearer ${GRAFANA_TOKEN}
"/docker":
target: "https://hub.docker.com"
changeOrigin: true
headers:
Authorization: ${DOCKERHUB_TOKEN}
"/prometheus/api":
target: ${PROMETHEUS_URL}
"/argocd/api":
target: ${ARGOCD_URL}/api/v1/
changeOrigin: true
# only if your argocd api has self-signed cert
secure: false
headers:
Cookie:
$env: ARGOCD_AUTH_TOKEN
grafana:
# Publicly accessible domain
domain: https://monitoring.company.com
unifiedAlerting: false
auth:
# see https://backstage.io/docs/auth/ to learn about auth providers
providers:
# See https://backstage.io/docs/auth/guest/provider
guest: {}
scaffolder:
# see https://backstage.io/docs/features/software-templates/configuration for software template options
vela:
host: http://backstage-plugin-vela.vela-system:8080 # Change this to the endpoint of the connector
# frequency is the refresh rate for the Vela API, default to 60 seconds, the unit is seconds
frequency: 30
# timeout is the timeout limit for the Vela API, default to 600 seconds, the unit is seconds
timeout: 60
catalog:
import:
entityFilename: catalog-info.yaml
pullRequestBranchName: backstage-integration
rules:
- allow: [Domain, System, Component, API, Location, Template, User, Group]
locations:
# Local example data, file locations are relative to the backend process, typically `packages/backend`
- type: file
target: ../../examples/entities.yaml
# Local example template
- type: file
target: ../../examples/template/template.yaml
rules:
- allow: [Template]
# Local example organizational data
- type: file
target: ../../examples/org.yaml
rules:
- allow: [User, Group]
## Uncomment these lines to add more example data
- type: url
target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all.yaml
## Uncomment these lines to add an example org
- type: url
target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme-corp.yaml
rules:
- allow: [User, Group]