Skip to content

Commit

Permalink
ADD env var for blocked user redirect
Browse files Browse the repository at this point in the history
AUTO_BLOCKED_USER_REDIRECT tells us where to send blocked users after
they login.
  • Loading branch information
ionparticle committed Aug 3, 2024
1 parent c7a4f1e commit 8330e3a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mediawiki/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: mediawiki
version: 0.7.0
version: 0.7.1
appVersion: 1.39.8
description: Extremely powerful, scalable software and a feature-rich wiki implementation
that uses PHP to process and display data stored in a database.
Expand Down
8 changes: 6 additions & 2 deletions mediawiki/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,13 @@ env:
- name: PARSOID_SKIP_DOAMIN_CHECK
value: {{ .Values.parsoid.skipDomainCheck | quote }}
{{- end }}
{{- if .Values.ldap.autoCreatedUserRedirect }}
{{- if .Values.mediawikiUserRedirect.created }}
- name: AUTO_CREATED_USER_REDIRECT
value: {{ .Values.ldap.autoCreatedUserRedirect }}
value: {{ .Values.mediawikiUserRedirect.created }}
{{- end }}
{{- if .Values.mediawikiUserRedirect.blocked }}
- name: AUTO_BLOCKED_USER_REDIRECT
value: {{ .Values.mediawikiUserRedirect.blocked }}
{{- end }}
{{- end }}
- name: MEDIAWIKI_MAIN_CACHE
Expand Down
5 changes: 4 additions & 1 deletion mediawiki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ mediawikiUploadPath: //example.com/images
# Enable bot password
mediawikiEnableBotPasswords: true

mediawikiUserRedirect:
created: Main_Page
blocked: Main_Page

googleAnalytics:
# Google Analytics Tracking Token
id: G-XXXXXXXX-XX
Expand Down Expand Up @@ -242,7 +246,6 @@ ldap:
realnameAttr: displayname
emailAttr: mail
ubcAuthEnabled: false
autoCreatedUserRedirect: Main_Page

parsoid:
skipDomainCheck: true
Expand Down

0 comments on commit 8330e3a

Please sign in to comment.