Skip to content

Commit

Permalink
add compression middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored May 10, 2024
1 parent 17067f3 commit 852c8b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kubernetes/loculus/templates/ingressroute.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: compression-middleware
spec:
compress: {}
---
{{- if eq $.Values.environment "server" }}
{{- $backendHost := printf "backend-%s" .Values.host }}
{{- $keycloakHost := printf "authentication-%s" .Values.host }}
Expand All @@ -6,6 +13,8 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: loculus-website-ingress
annotations:
traefik.ingress.kubernetes.io/router.middlewares: compression-middleware@kubernetescrd
spec:
rules:
- host: "{{ .Values.host }}"
Expand Down

0 comments on commit 852c8b4

Please sign in to comment.