|
| 1 | +app: |
| 2 | + title: Scaffolded Backstage App |
| 3 | + baseUrl: http://localhost:3000 |
| 4 | + |
| 5 | +organization: |
| 6 | + name: My Company |
| 7 | + |
| 8 | +backend: |
| 9 | + # Used for enabling authentication, secret is shared by all backend plugins |
| 10 | + # See https://backstage.io/docs/auth/service-to-service-auth for |
| 11 | + # information on the format |
| 12 | + # auth: |
| 13 | + # keys: |
| 14 | + # - secret: ${BACKEND_SECRET} |
| 15 | + baseUrl: http://localhost:7007 |
| 16 | + listen: |
| 17 | + port: 7007 |
| 18 | + # Uncomment the following host directive to bind to specific interfaces |
| 19 | + # host: 127.0.0.1 |
| 20 | + csp: |
| 21 | + connect-src: ["'self'", 'http:', 'https:'] |
| 22 | + # Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference |
| 23 | + # Default Helmet Content-Security-Policy values can be removed by setting the key to false |
| 24 | + cors: |
| 25 | + origin: http://localhost:3000 |
| 26 | + methods: [GET, HEAD, PATCH, POST, PUT, DELETE] |
| 27 | + credentials: true |
| 28 | + # This is for local development only, it is not recommended to use this in production |
| 29 | + # The production database configuration is stored in app-config.production.yaml |
| 30 | + database: |
| 31 | + client: better-sqlite3 |
| 32 | + connection: ':memory:' |
| 33 | + # workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir |
| 34 | + |
| 35 | +integrations: |
| 36 | + github: |
| 37 | + - host: github.com |
| 38 | + # This is a Personal Access Token or PAT from GitHub. You can find out how to generate this token, and more information |
| 39 | + # about setting up the GitHub integration here: https://backstage.io/docs/getting-started/configuration#setting-up-a-github-integration |
| 40 | + token: ${GITHUB_TOKEN} |
| 41 | + ### Example for how to add your GitHub Enterprise instance using the API: |
| 42 | + # - host: ghe.example.net |
| 43 | + # apiBaseUrl: https://ghe.example.net/api/v3 |
| 44 | + # token: ${GHE_TOKEN} |
| 45 | + |
| 46 | +proxy: |
| 47 | + ### Example for how to add a proxy endpoint for the frontend. |
| 48 | + ### A typical reason to do this is to handle HTTPS and CORS for internal services. |
| 49 | + # '/test': |
| 50 | + # target: 'https://example.com' |
| 51 | + # changeOrigin: true |
| 52 | + |
| 53 | +# Reference documentation http://backstage.io/docs/features/techdocs/configuration |
| 54 | +# Note: After experimenting with basic setup, use CI/CD to generate docs |
| 55 | +# and an external cloud storage when deploying TechDocs for production use-case. |
| 56 | +# https://backstage.io/docs/features/techdocs/how-to-guides#how-to-migrate-from-techdocs-basic-to-recommended-deployment-approach |
| 57 | +techdocs: |
| 58 | + builder: 'local' # Alternatives - 'external' |
| 59 | + generator: |
| 60 | + runIn: 'docker' # Alternatives - 'local' |
| 61 | + publisher: |
| 62 | + type: 'local' # Alternatives - 'googleGcs' or 'awsS3'. Read documentation for using alternatives. |
| 63 | + |
| 64 | +auth: |
| 65 | + # see https://backstage.io/docs/auth/ to learn about auth providers |
| 66 | + providers: {} |
| 67 | + |
| 68 | +scaffolder: |
| 69 | + # see https://backstage.io/docs/features/software-templates/configuration for software template options |
| 70 | + |
| 71 | +catalog: |
| 72 | + import: |
| 73 | + entityFilename: catalog-info.yaml |
| 74 | + pullRequestBranchName: backstage-integration |
| 75 | + rules: |
| 76 | + - allow: [Component, System, API, Resource, Location] |
| 77 | + locations: |
| 78 | + # Local example data, file locations are relative to the backend process, typically `packages/backend` |
| 79 | + - type: file |
| 80 | + target: ../../examples/entities.yaml |
| 81 | + |
| 82 | + # Local example template |
| 83 | + - type: file |
| 84 | + target: ../../examples/template/template.yaml |
| 85 | + rules: |
| 86 | + - allow: [Template] |
| 87 | + |
| 88 | + # Local example organizational data |
| 89 | + - type: file |
| 90 | + target: ../../examples/org.yaml |
| 91 | + rules: |
| 92 | + - allow: [User, Group] |
| 93 | + |
| 94 | + ## Uncomment these lines to add more example data |
| 95 | + # - type: url |
| 96 | + # target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/all.yaml |
| 97 | + |
| 98 | + ## Uncomment these lines to add an example org |
| 99 | + # - type: url |
| 100 | + # target: https://github.com/backstage/backstage/blob/master/packages/catalog-model/examples/acme-corp.yaml |
| 101 | + # rules: |
| 102 | + # - allow: [User, Group] |
0 commit comments