sreez-backstage-demo/sreez-showcase/app-config.yaml
2024-04-19 11:13:31 -04:00

137 lines
5.8 KiB
YAML

app:
title: Scaffolded Backstage App
baseUrl: http://localhost:3000
organization:
name: My Company
backend:
# 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
apps:
- appId: 880885
webhookUrl: https://smee.io/Nj4FT0Aq729ugz7yunjy
clientId: Iv1.62e73edda444f42c
clientSecret: 3f723fe4e40239d3817cb0a6a1190b7a71e86395
webhookSecret: 707dd0e621c9fa7c00acd060e406d9f3a07fbe88
privateKey: |
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA3NUeQ8dwqOxLgxqhSs8XQT2rWWNeJDrtqhGLYoTkP9jcm+YV
NvqHT3mRbOlff9d1sk+lmLbtTQc/ToOTifwAyIHrHU0ZuGqAiQSKLNSFYYtEe/r6
bqaJMmClHXBLkNt027MIWHuU1nM6zsbAhizBRZbmpMyr/gOfgH4WzXeeM4RYlbwp
qTujlCigWX51BJCJlBxAmq+UHURZooQreP5hBZBd4GpUctaDElZAfOOOYV42U0Al
651FBt8kZOzBBjZbx0yrBsl2A9yCjWq5xNTKMHC9Xg0MhDv8ge41DX2Kb4zDkG8Q
xJg6rrId6isOsjACGh5mfC+T1Xn7bz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FPI+qSYo8jw7xrk5Pl15RnFAbYmC7Jxsl6ilx4Y0d9q0o
EkcZ2Cft85Tx+Jnuzm2V8HnufqO4EVcmy44vGetsMMcuMqqtwYn/K51o1G4S49rR
knI0blhVopibXjvzViuJu+WrJyI98itcaYJUXd1u4osLpHk6Fd18oQ==
-----END RSA PRIVATE KEY-----
proxy:
### Example for how to add a proxy endpoint for the frontend.
### A typical reason to do this is to handle HTTPS and CORS for internal services.
# endpoints:
# '/test':
# target: 'https://example.com'
# changeOrigin: true
# Reference documentation http://backstage.io/docs/features/techdocs/configuration
# Note: After experimenting with basic setup, use CI/CD to generate docs
# and an external cloud storage when deploying TechDocs for production use-case.
# https://backstage.io/docs/features/techdocs/how-to-guides#how-to-migrate-from-techdocs-basic-to-recommended-deployment-approach
techdocs:
builder: "local" # Alternatives - 'external'
generator:
runIn: "docker" # Alternatives - 'local'
publisher:
type: "local" # Alternatives - 'googleGcs' or 'awsS3'. Read documentation for using alternatives.
auth:
# see https://backstage.io/docs/auth/ to learn about auth providers
providers:
# See https://backstage.io/docs/auth/guest/provider
github:
development:
clientId: 400cfa04377727669c97
clientSecret: 5f058d2257c63dac4ef773a20369e01d0baea6bf
scaffolder:
# see https://backstage.io/docs/features/software-templates/configuration for software template options
catalog:
import:
entityFilename: catalog-info.yaml
pullRequestBranchName: backstage-integration
rules:
- allow: [Component, System, API, Resource, Location]
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]
- type: url
target: https://github.com/backstage/backstage/raw/master/packages/catalog-model/examples/apis/petstore-api.yaml
## 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]