Skip to content

Instantly share code, notes, and snippets.

@ArveSystad
Created January 6, 2022 17:06
Show Gist options
  • Save ArveSystad/eb14c5cb32ca4c127100ee25dfc7c94b to your computer and use it in GitHub Desktop.
Save ArveSystad/eb14c5cb32ca4c127100ee25dfc7c94b to your computer and use it in GitHub Desktop.
app:
# Should be the same as backend.baseUrl when using the `app-backend` plugin
baseUrl: https://${CUSTOM_DOMAIN}
backend:
baseUrl: https://${CUSTOM_DOMAIN}
listen:
port: 80
cors:
origin: https://${CUSTOM_DOMAIN}
integrations:
github:
- host: github.com
apps:
- appId: ${GITHUB_BACKSTAGE_APPID}
webhookUrl: ${GITHUB_BACKSTAGE_WEBHOOKURL}
clientId: ${GITHUB_BACKSTAGE_CLIENTID}
clientSecret: ${GITHUB_BACKSTAGE_CLIENTSECRET}
webhookSecret: ${GITHUB_BACKSTAGE_WEBHOOKSECRET}
privateKey: |
${GITHUB_BACKSTAGE_PRIVATEKEY}
auth:
environment: production
providers:
microsoft:
production:
clientId: ${AZURE_CLIENT_ID}
clientSecret: ${AZURE_CLIENT_SECRET}
tenantId: ${AZURE_TENANT_ID}
techdocs:
builder: 'external'
publisher:
type: 'azureBlobStorage'
azureBlobStorage:
containerName: ${TECHDOCS_CONTAINER_NAME}
credentials:
accountName: ${TECHDOCS_STORAGE_ACCOUNT}
app:
title: Backstage for ABCDCompany
baseUrl: http://localhost:3000
organization:
name: ABCD # Insert your own
backend:
baseUrl: http://localhost:7007
listen:
port: 7007
csp:
connect-src: ["'self'", 'http:', 'https:']
cors:
origin: http://localhost:3000
methods: [GET, POST, PUT, DELETE]
credentials: true
database:
client: pg
connection:
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
ssl: true
cache:
store: memory
integrations:
github:
- host: github.com
token: ${GITHUB_TOKEN}
proxy:
'/test':
target: 'https://example.com'
changeOrigin: true
techdocs:
builder: 'local' # Alternatives - 'external'
generator:
runIn: 'docker' # Alternatives - 'local'
publisher:
type: 'local' # Alternatives - 'googleGcs' or 'awsS3'. Read documentation for using alternatives.
auth:
providers: {}
scaffolder:
# see https://backstage.io/docs/features/software-templates/configuration for software template options
catalog:
rules:
- allow: [Component, System, API, Group, User, Resource, Location]
locations:
# Backstage example templates
- type: url
target: https://github.com/backstage/software-templates/blob/main/scaffolder-templates/docs-template/template.yaml
rules:
- allow: [Template]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment