File tree Expand file tree Collapse file tree 5 files changed +42
-8
lines changed Expand file tree Collapse file tree 5 files changed +42
-8
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ type: application
6
6
# This is the chart version. This version number should be incremented each time you make changes
7
7
# to the chart and its templates, including the app version.
8
8
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9
- version : 0.0.42
9
+ version : 0.0.43
10
10
11
11
# This is the version number of the application being deployed. This version number should be
12
12
# incremented each time you make changes to the application. Versions are not expected to
13
13
# follow Semantic Versioning. They should reflect the version the application is using.
14
- appVersion : 4.6.2-federation-wireapp.16
14
+ appVersion : 4.6.2-federation-wireapp.31
Original file line number Diff line number Diff line change
1
+ {{- if .Values.ratelimit.allowlist }}
2
+ apiVersion : v1
3
+ kind : ConfigMap
4
+ metadata :
5
+ name : coturn-allowlist
6
+ labels :
7
+ app : coturn
8
+ chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9
+ release : {{ .Release.Name }}
10
+ heritage : {{ .Release.Service }}
11
+ data :
12
+ allowlist.txt : |
13
+ {{- range .Values.ratelimit.allowlist }}
14
+ {{ . }}
15
+ {{- end }}
16
+ {{- end }}
Original file line number Diff line number Diff line change 90
90
401-req-limit={{ .Values.ratelimit.requestLimit }}
91
91
401-window={{ .Values.ratelimit.window }}
92
92
{{- end }}
93
+ {{- if .Values.ratelimit.allowlist }}
94
+ ## rate-limiting allowlist location
95
+ 401-allowlist=/etc/coturn/allowlist.txt
96
+ {{- end }}
93
97
94
98
{{- if .Values.federate.enabled }}
95
99
### federation setup
Original file line number Diff line number Diff line change 63
63
secret :
64
64
secretName : coturn-dtls-certificate
65
65
{{- end }}
66
+ {{- if .Values.ratelimit.allowlist }}
67
+ - name : allowlist-volume
68
+ configMap :
69
+ name : coturn-allowlist
70
+ {{- end }}
66
71
initContainers :
67
72
- name : get-external-ip
68
73
image : bitnami/kubectl:1.29.11
@@ -125,11 +130,16 @@ spec:
125
130
mountPath : /secrets-tls/
126
131
readOnly : true
127
132
{{- end }}
128
- {{- if .Values.federate.dtls.enabled }}
133
+ {{- if .Values.federate.dtls.enabled }}
129
134
- name : coturn-dtls-certificate
130
135
mountPath : /coturn-dtls-certificate/
131
136
readOnly : true
132
- {{- end }}
137
+ {{- end }}
138
+ {{- if .Values.ratelimit.allowlist }}
139
+ - name : allowlist-volume
140
+ mountPath : /etc/coturn/allowlist.txt
141
+ subPath : allowlist.txt
142
+ {{- end }}
133
143
command :
134
144
- /usr/bin/dumb-init
135
145
- --
Original file line number Diff line number Diff line change @@ -93,10 +93,14 @@ federate:
93
93
94
94
ratelimit :
95
95
override : false
96
- # # Set the maximum number of 401 Unauthorized responses allowed per rate-limiting window. Defaults is 1000.
97
- # requestLimit: 1000
98
- # # Set the time window duration in seconds for rate limiting 401 Unauthorized responses. Defaults is 120.
99
- # window: 120
96
+ # # Set the maximum number of 401 Unauthorized responses allowed per rate-limiting window. Defaults is 1000.
97
+ # requestLimit: 1000
98
+ # # Set the time window duration in seconds for rate limiting 401 Unauthorized responses. Defaults is 120.
99
+ # window: 120
100
+ # # Define the IPs allowed to bypass the 401 rate-limiting
101
+ # allowlist:
102
+ # - "192.168.1.1"
103
+ # - "192.168.1.2"
100
104
101
105
metrics :
102
106
serviceMonitor :
You can’t perform that action at this time.
0 commit comments