Skip to content

Commit

Permalink
Host static files on reverse proxy
Browse files Browse the repository at this point in the history
Signed-off-by: Ammar Lakis <[email protected]>
  • Loading branch information
ammarlakis committed Oct 27, 2021
1 parent e56c3dd commit b1478b3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions prow/cluster/components/reverse_proxy_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ spec:
volumeMounts:
- name: config
mountPath: /etc/nginx/conf.d/
- name: static-files
mountPath: /usr/share/nginx/html/
livenessProbe:
httpGet:
path: /robots.txt
Expand All @@ -40,6 +42,9 @@ spec:
- name: config
configMap:
name: reverse-proxy-config
- name: static-files
configMap:
name: static-files
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -52,8 +57,8 @@ data:
listen 80;
server_name _;
location /robots.txt {
proxy_pass https://storage.googleapis.com/kyma-prow-logs/robots.txt;
location / {
root /usr/share/nginx/html/;
}
location = /50x.html {
Expand Down
2 changes: 2 additions & 0 deletions prow/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ config_updater:
clusters:
trusted-workload:
- default
prow/static-files/*:
name: static-files

triggers:
- repos:
Expand Down
Empty file added prow/static_files/index.html
Empty file.
2 changes: 2 additions & 0 deletions prow/static_files/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit b1478b3

Please sign in to comment.