enable registration

This commit is contained in:
iexos 2023-06-30 11:17:54 +02:00
parent 0fb7f2bd7f
commit 08d7201772
3 changed files with 8 additions and 2 deletions

View File

@ -17,6 +17,7 @@ MEDIAWIKI_LOGO_FILE='$wgResourceBasePath/resources/assets/wiki.png'
MEDIAWIKI_LANGUAGE="en" MEDIAWIKI_LANGUAGE="en"
MEDIAWIKI_IS_PRIVATE=1 MEDIAWIKI_IS_PRIVATE=1
MEDIAWIKI_ALLOW_REGISTRATION=0
MEDIAWIKI_DEBUG=0 MEDIAWIKI_DEBUG=0

View File

@ -106,8 +106,13 @@ $wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution. # Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3"; $wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer {{ if eq (env "MEDIAWIKI_ALLOW_REGISTRATION") "1" }}
$wgGroupPermissions['*']['createaccount'] = true;
$wgEmailConfirmToEdit = true;
{{ else }}
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['createaccount'] = false;
{{ end }}
$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['edit'] = false;
{{ if eq (env "MEDIAWIKI_IS_PRIVATE") "1" }} {{ if eq (env "MEDIAWIKI_IS_PRIVATE") "1" }}
$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['read'] = false;

View File

@ -1,4 +1,4 @@
export LOCAL_SETTINGS_CONF_VERSION=v21 export LOCAL_SETTINGS_CONF_VERSION=v22
export HTACCESS_CONF_VERSION=v1 export HTACCESS_CONF_VERSION=v1
export ENTRYPOINT_CONF_VERSION=v19 export ENTRYPOINT_CONF_VERSION=v19
export COMPOSER_LOCAL_CONF_VERSION=v5 export COMPOSER_LOCAL_CONF_VERSION=v5