Skip to content

Commit

Permalink
feat(deployment): Add compression middleware for the website (#1850)
Browse files Browse the repository at this point in the history
* add compression middleware

* update

* fix
  • Loading branch information
theosanderson authored May 10, 2024
1 parent 17067f3 commit b64b535
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: "{{ $.Release.Namespace }}-compression-middleware@kubernetescrd"
spec:
rules:
- host: "{{ .Values.host }}"
Expand Down

0 comments on commit b64b535

Please sign in to comment.