-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-config.yaml
167 lines (153 loc) · 4.7 KB
/
app-config.yaml
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
app:
title: Backstage on OpenShift
baseUrl: https://backstage-${bs_app_name}.${openshift_ingress_domain}/
organization:
name: Josh @ Red Hat
backend:
auth:
keys:
- secret: 'replacewithbase64secret'
baseUrl: https://backstage-${bs_app_name}.${openshift_ingress_domain}/
database:
client: pg
connection:
# config options: https://node-postgres.com/apis/client
host: backstage-pgcluster-rw
port: 5432
user: ${username}
password: ${password}
# you can set the sslmode configuration option via the `PGSSLMODE` environment variable
# https://node-postgres.com/features/ssl
# see https://www.postgresql.org/docs/current/libpq-ssl.html Table 33.1. SSL Mode Descriptions (e.g. require)
ssl:
ca: # if you have a CA file and want to verify it you can uncomment this section
$file: /var/run/secrets/backstage-pgcluster-ca
listen:
port: 7007
csp:
# 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
connect-src: ["'self'", 'http:', 'https:']
cors:
origin: http://localhost:3000
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true
cache:
store: memory
# Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir
# workingDirectory: /tmp
integrations:
github:
- host: github.com
## if using a PAT:
# token: ${GITHUB_TOKEN}
## if using GitHub apps:
apps:
- $include: github-app-credentials.yaml
github-org-provider:
id: production
orgUrl: https://github.com/joshgav-org
proxy:
'/quay/api':
target: https://${registry_hostname}
headers:
X-Requested-With: 'XMLHttpRequest'
Authorization: 'Bearer ${QUAY_TOKEN}'
changeOrigin: true
secure: true
pathRewrite:
'^/api/proxy/quay/api': '/'
'/argocd/api':
target: https://openshift-gitops-server-openshift-gitops.${openshift_ingress_domain}/api/v1
changeOrigin: true
secure: true
pathRewrite:
'^/api/proxy/argocd/api': '/'
headers:
# inject token as env var from secret
Authorization: 'Bearer ${ARGOCD_AUTH_TOKEN}'
techdocs:
builder: 'local'
generator:
runIn: 'local'
publisher:
type: 'local'
auth:
environment: development
# see https://backstage.io/docs/auth/ to learn about auth providers
providers: {}
scaffolder: {}
# example files must be copied into the container
catalog:
import:
entityFilename: catalog-info.yaml
pullRequestBranchName: backstage-integration
rules:
- allow: [Component, System, API, Resource, Location, Template]
locations:
- type: file
target: examples/org.yaml
rules:
- allow: [User, Group]
- type: url
target: https://github.com/joshgav/spring-apiserver/blob/main/backstage-catalog-info.yaml
- type: url
target: https://github.com/joshgav/bs1/blob/main/catalog-info.yaml
# Janus (Red Hat) templates
- type: url
target: https://github.com/janus-idp/software-templates/blob/main/showcase-templates.yaml
providers:
ocm:
env:
kubernetesPluginRef: local-cluster
kubernetes:
serviceLocatorMethod:
type: multiTenant
clusterLocatorMethods:
- type: config
clusters:
- url: https://kubernetes.default.svc/
name: local-cluster
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
authProvider: serviceAccount
# don't specify this attribute to force lookup in pod in cluster
# serviceAccountToken: ''
dashboardUrl: https://console-openshift-console.${openshift_ingress_domain}/
dashboardApp: openshift
skipTLSVerify: false
skipMetricsLookup: false
customResources:
- group: tekton.dev
apiVersion: v1beta1
plural: pipelineruns
- group: tekton.dev
apiVersion: v1beta1
plural: taskruns
- group: 'route.openshift.io'
apiVersion: 'v1'
plural: 'routes'
## for base upstream Argo plugin
argocd:
baseUrl: https://openshift-gitops-server-openshift-gitops.${openshift_ingress_domain}/
## for Roadie Argo plugin, used in Janus/RHDH
# argocd:
# appLocatorMethods:
# - type: config
# instances:
# - name: argo
# url: https://openshift-gitops-server-openshift-gitops.${openshift_ingress_domain}/
# token: ${ARGOCD_AUTH_TOKEN}
quay:
uiUrl: 'https://${registry_hostname}'
## this section is used only by Janus/RHDH
enabled:
kubernetes: true
techdocs: true
argocd: true
github: true
githubOrg: true
ocm: true
sonarqube: false
keycloak: false
gitlab: false
jenkins: false