mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-05 16:22:29 -08:00
31 lines
979 B
YAML
31 lines
979 B
YAML
{{- /*
|
|
Copyright 2024 New Vector Ltd
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
*/ -}}
|
|
|
|
{{- if or $.Values.synapse.enabled $.Values.wellKnownDelegation.enabled -}}
|
|
{{- with .Values.haproxy -}}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
labels:
|
|
{{- include "element-io.haproxy.labels" (dict "root" $ "context" .) | nindent 4 }}
|
|
name: {{ $.Release.Name }}-haproxy
|
|
namespace: {{ $.Release.Namespace }}
|
|
data:
|
|
haproxy.cfg: |
|
|
{{- tpl ($.Files.Get "configs/haproxy/haproxy.cfg.tpl") (dict "root" $ "context" .) | nindent 4 }}
|
|
429.http: |
|
|
HTTP/1.0 429 Too Many Requests
|
|
Cache-Control: no-cache
|
|
Connection: close
|
|
Content-Type: application/json
|
|
access-control-allow-origin: *
|
|
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
|
|
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
|
|
|
|
{"errcode":"M_UNKNOWN","error":"Server is unavailable"}
|
|
{{- end -}}
|
|
{{- end -}}
|