Skip to content

Commit 573d8e5

Browse files
chore: Adding quay.io plugin to default configuration (#92)
Co-authored-by: Armel Soro <[email protected]>
1 parent f046cc1 commit 573d8e5

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

configs/app-config/app-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ backend:
5151
credentials: true
5252
csp:
5353
upgrade-insecure-requests: false
54+
# CSP for Quay Images
55+
img-src:
56+
- "'self'"
57+
- "data:"
58+
- "https://quay.io"
59+
- "https://*.quay.io"
5460

5561
# comment out the following 'database' section to use the PostgreSQL database
5662
database:
@@ -90,3 +96,23 @@ techdocs:
9096
type: local
9197
local:
9298
publishDirectory: /tmp/techdocs
99+
100+
101+
proxy:
102+
endpoints:
103+
'/quay/api':
104+
target: 'https://quay.io'
105+
credentials: require
106+
headers:
107+
X-Requested-With: 'XMLHttpRequest'
108+
# Uncomment and use the Authorization header below to access a private Quay
109+
# Repository using a token. Refer to the "Applications and Tokens" section
110+
# at https://docs.quay.io/api/ to find the instructions to generate a token
111+
# Authorization: 'Bearer <YOUR TOKEN>'
112+
changeOrigin: true
113+
# Change to "false" in case of using self hosted quay instance with a self-signed certificate
114+
secure: true
115+
116+
quay:
117+
# The UI url for Quay, used to generate the link to Quay
118+
uiUrl: 'https://quay.io'

configs/catalog-entities/components.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
# owner: CNCF
2222
# lifecycle: experimental
2323

24-
# ---
25-
2624
###############################
2725
# SYSTEMS
2826
###############################
@@ -76,4 +74,4 @@ spec:
7674
type: product
7775
lifecycle: production
7876
profile:
79-
displayName: RHDH Local
77+
displayName: RHDH Local

configs/dynamic-plugins/dynamic-plugins.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ includes:
33
- dynamic-plugins.default.yaml
44

55
plugins:
6-
#Tech Radar frontend plugin
6+
# Tech Radar frontend plugin
77
- package: ./dynamic-plugins/dist/backstage-community-plugin-tech-radar
88
disabled: false
9+
10+
# Quay plugin
11+
- package: ./dynamic-plugins/dist/backstage-community-plugin-quay
12+
disabled: false
913

0 commit comments

Comments
 (0)