This repository has been archived by the owner on Sep 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
app-config.production.yaml
139 lines (129 loc) · 3.78 KB
/
app-config.production.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
app:
title: Ortelius
baseUrl: https://backstage.ortelius.io
organization:
name: Ortelius
auth:
environment: production
providers:
github:
development:
clientId: ${GITHUB_OAUTH_CLIENT_ID}
clientSecret: ${GITHUB_OAUTH_CLIENT_SECRET}
integrations:
github:
- host: github.com
apps:
- $include: github-app-credentials.yaml
backend:
baseUrl: https://backstage-backend.ortelius.io
listen:
port: 7007
host: 0.0.0.0
csp:
connect-src: ["'self'", 'http:', 'https:']
cors:
origin: https://backstage.ortelius.io
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true
database:
client: pg
connection:
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
knexConfig:
pool:
min: 15
max: 30
acquireTimeoutMillis: 60000
createTimeoutMillis: 30000
destroyTimeoutMillis: 5000
idleTimeoutMillis: 60000
reapIntervalMillis: 1000
createRetryIntervalMillis: 200
propagateCreateError: false
cache:
store: memory
integrations:
github:
- host: github.com
# This is a Personal Access Token or PAT from GitHub. You can find out how to generate this token, and more information
# about setting up the GitHub integration here: https://backstage.io/docs/getting-started/configuration#setting-up-a-github-integration
token: ${GITHUB_TOKEN}
kubernetes:
serviceLocatorMethod:
type: 'multiTenant'
clusterLocatorMethods:
- type: 'config'
clusters:
- url: ${KUBERNETES_URL}
name: AKS
serviceAccountToken: ${KUBERNETES_TOKEN}
authProvider: 'serviceAccount'
skipTLSVerify: true
skipMetricsLookup: true
customResources:
- group: 'core.k8sgpt.ai'
apiVersion: 'v1alpha1'
plural: 'results'
argocd:
username: ${ARGOCD_USERNAME}
password: ${ARGOCD_PASSWORD}
appLocatorMethods:
- type: 'config'
instances:
- name: production
url: ${ARGOCD_BASE_URL}
prometheus:
proxyPath: /prometheus/api
techdocs:
builder: 'external'
generator:
runIn: 'local'
publisher:
type: 'awsS3'
awsS3:
bucketName: 'ortelius-techdocs-dev'
region: ${AWS_DEFAULT_REGION}
credentials:
accessKeyId: ${AWS_ACCESS_KEY_ID}
secretAccessKey: ${AWS_ACCESS_KEY_SECRET}
proxy:
'/argocd/api':
target: ${ARGOCD_BASE_URL}/api/v1/
changeOrigin: true
secure: false
headers:
Cookie:
$env: ${ARGOCD_AUTH_TOKEN}
'/prometheus/api':
target: http://kube-prometheus-stack-prometheus.observability.svc.cluster.local:9090/api/v1/
changeOrigin: true
secure: false
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:
- type: url
target: https://github.com/ortelius/ortelius-kubernetes/blob/main/catalog-info.yaml
rules:
- allow: [Component, System, API, Resource, Location, Domain, Location, Group]
- type: url
target: https://github.com/ortelius/ortelius-kubernetes/blob/main/podtato-head-catalog-info.yaml
rules:
- allow: [Component, System, API, Resource, Location, Domain, Location, Group]
- type: url
target: https://github.com/ortelius/backstage/blob/main/catalog-info.yaml
rules:
- allow: [Component, System, API, Resource, Location, Domain, Location]
- type: github-org
target: https://github.com/ortelius
rules:
- allow: [Group, User]