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 2, 2024
1 parent c7a4f1e commit dba3d74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
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 dba3d74

Please sign in to comment.