Allow to configure privateness
All checks were successful
continuous-integration/drone/push Build is passing

Closes https://git.autonomic.zone/coop-cloud/mediawiki/issues/18.
This commit is contained in:
2021-02-16 13:36:33 +01:00
parent ee831dabc0
commit 17e898e3a9
2 changed files with 6 additions and 0 deletions

View File

@ -120,7 +120,11 @@ $wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
{{ if eq (env "MEDIAWIKI_IS_PRIVATE") "1" }}
$wgGroupPermissions['*']['read'] = false;
{{ else }}
$wgGroupPermissions['*']['read'] = true;
{{ end }}
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':