-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp-config.yaml
More file actions
197 lines (177 loc) · 5.72 KB
/
app-config.yaml
File metadata and controls
197 lines (177 loc) · 5.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
app:
title: Dev Portal
baseUrl: http://localhost:3000
extensions:
- api:home/visits
- app-root-element:home/visit-listener
- page:gs/clusters
- nav-item:gs/clusters
- page:gs/deployments
- nav-item:gs/deployments
- page:gs/installations
- nav-item:gs/installations
- page:flux
- nav-item:flux
- page:ai-chat
- api:ai-chat/service
- api:ai-chat/drawer
- app-root-element:ai-chat/drawer
- entity-card:catalog/depends-on-components: false
- entity-card:catalog/depends-on-resources: false
- entity-card:catalog/has-subcomponents: false
- entity-card:catalog/labels: false
- entity-card:catalog-graph/relations: false
- entity-card:api-docs/provided-apis: false
- entity-card:api-docs/consumed-apis: false
- entity-card:api-docs/consuming-components: false
- entity-card:api-docs/providing-components: false
- entity-card:github-actions/recent-workflow-runs: false
- entity-content:techdocs: false
- entity-content:kubernetes/kubernetes: false
- entity-content:api-docs/definition: false
- entity-content:api-docs/apis: false
- entity-context-menu-item:catalog/unregister-entity: false
routes:
bindings:
catalog.createComponent: scaffolder.root
catalog.viewTechDoc: techdocs.docRoot
org.catalogIndex: catalog.catalogIndex
gs.fluxOverview: flux.overview
gs.fluxResources: flux.root
telemetrydeck:
appID: ''
salt: ${TELEMETRYDECK_SALT}
search:
defaultType: software-catalog
organization:
name: My Company
backend:
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:']
img-src:
- "'self'"
- 'data:'
- 'https://avatars.githubusercontent.com'
- 'https://circleci.com'
- 'https://codecov.io'
- 'https://dl.circleci.com'
- 'https://github.com'
- 'https://godoc.org'
- 'https://goreportcard.com'
- 'https://img.shields.io'
- 'https://pkg.go.dev'
- 'https://user-images.githubusercontent.com'
script-src:
- "'self'"
- "'unsafe-eval'"
- 'https://use.fortawesome.com'
worker-src:
- "'self'"
- "'unsafe-eval'"
- 'blob:'
# 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
database:
client: better-sqlite3
connection: ':memory:'
# client: pg
# pluginDivisionMode: schema
# connection:
# host: '127.0.0.1'
# port: '5432'
# user: ${POSTGRES_USER}
# password: ${POSTGRES_PASSWORD}
cache:
store: memory
# workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir
integrations:
# Example for how to add GitHub integration with a GitHub App.
# github:
# - host: github.com
# apps:
# - $include: github-app-credentials.yaml
permission:
enabled: true
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', 'awsS3'
kubernetes:
serviceLocatorMethod:
type: 'multiTenant'
clusterLocatorMethods:
- type: 'config'
clusters: []
auth:
# see https://backstage.io/docs/auth/ to learn about auth providers
environment: development
providers:
# GitHub OAuth example
# github:
# development:
# clientId: ${GITHUB_OAUTH_CLIENT_ID}
# clientSecret: ${GITHUB_OAUTH_CLIENT_SECRET}
scaffolder:
# see https://backstage.io/docs/features/software-templates/configuration for software template options
catalog:
rules:
- allow:
- API
- Component
- Domain
- Group
- Location
- Resource
- System
- User
- Template
grafana:
domain: https://example.com
# AI Chat plugin configuration
aiChat:
# Anthropic configuration
anthropic:
apiKey: ${ANTHROPIC_API_KEY}
# Optional: custom base URL for Anthropic-compatible APIs
# baseUrl: https://api.anthropic.com/v1
# OpenAI configuration
openai:
apiKey: ${OPENAI_API_KEY}
# Optional: custom base URL for OpenAI-compatible APIs
# baseUrl: https://api.openai.com/v1
# Azure OpenAI configuration (when configured, used instead of direct OpenAI)
# azure:
# apiKey: ${AZURE_OPENAI_API_KEY}
# resourceName: my-resource # constructs https://my-resource.openai.azure.com/openai
# # baseUrl: https://my-resource.openai.azure.com/openai # alternative: full URL
# # apiVersion: '2024-10-21' # optional API version override
# Model to use (default: gpt-4o-mini)
model: gpt-4o-mini
# Optional: MCP servers configuration
# mcp:
# - name: backstage-actions
# url: http://localhost:7007/api/mcp-actions/v1
# headers:
# Authorization: 'Bearer ${MCP_TOKEN}'