Skip to content

Commit

Permalink
feat: allow setting configuration values for signup throttling (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 authored Jul 13, 2023
1 parent f079cc7 commit 0206d86
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for the WBStack API
name: api
version: 0.22.0
version: 0.23.0
home: https://github.com/wbstack
maintainers:
- name: WBstack
Expand Down
8 changes: 8 additions & 0 deletions charts/api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ Common lists of environment variables
- name: WBSTACK_SUMMARY_CREATION_RATE_RANGES
value: {{ join "," .Values.wbstack.summaryCreationRateRanges | quote }}
{{- end }}
{{- if .Values.wbstack.signupThrottlingLimit }}
- name: WBSTACK_SIGNUP_THROTTLING_LIMIT
value: {{ .Values.wbstack.signupThrottlingLimit | quote }}
{{- end }}
{{- if .Values.wbstack.signupThrottlingRange }}
- name: WBSTACK_SIGNUP_THROTTLING_RANGE
value: {{ .Values.wbstack.signupThrottlingRange | quote }}
{{- end }}
{{- if .Values.wbstack.contact.mail.recipient }}
- name: WBSTACK_CONTACT_MAIL_RECIPIENT
value: {{ .Values.wbstack.contact.mail.recipient | quote }}
Expand Down
2 changes: 2 additions & 0 deletions charts/api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ wbstack:
# constructor: https://www.php.net/manual/en/dateinterval.construct.php
# E.g. PT6H (6 hours) or P30D (30 days)
summaryCreationRateRanges: []
signupThrottlingLimit:
signupThrottlingRange:
maxWikisPerUser:
subdomainSuffix: ".undefined.nohost"
uiurl:
Expand Down

0 comments on commit 0206d86

Please sign in to comment.