Allow to configure privateness
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Closes https://git.autonomic.zone/coop-cloud/mediawiki/issues/18.
This commit is contained in:
parent
ee831dabc0
commit
17e898e3a9
|
@ -11,6 +11,8 @@ MEDIAWIKI_EMAIL_CONTACT="info@wiki.example.com"
|
||||||
MEDIAWIKI_EMAIL_FROM="wiki@wiki.example.com"
|
MEDIAWIKI_EMAIL_FROM="wiki@wiki.example.com"
|
||||||
MEDIAWIKI_LOGO_FILE='$wgResourceBasePath/resources/assets/wiki.png'
|
MEDIAWIKI_LOGO_FILE='$wgResourceBasePath/resources/assets/wiki.png'
|
||||||
|
|
||||||
|
MEDIAWIKI_IS_PRIVATE=1
|
||||||
|
|
||||||
## SMTP
|
## SMTP
|
||||||
#SMTP_HOST=postfix_relay_app
|
#SMTP_HOST=postfix_relay_app
|
||||||
#SMTP_HOST=mailu_front
|
#SMTP_HOST=mailu_front
|
||||||
|
|
|
@ -120,7 +120,11 @@ $wgDiff3 = "/usr/bin/diff3";
|
||||||
# The following permissions were set based on your choice in the installer
|
# The following permissions were set based on your choice in the installer
|
||||||
$wgGroupPermissions['*']['createaccount'] = false;
|
$wgGroupPermissions['*']['createaccount'] = false;
|
||||||
$wgGroupPermissions['*']['edit'] = false;
|
$wgGroupPermissions['*']['edit'] = false;
|
||||||
|
{{ if eq (env "MEDIAWIKI_IS_PRIVATE") "1" }}
|
||||||
$wgGroupPermissions['*']['read'] = false;
|
$wgGroupPermissions['*']['read'] = false;
|
||||||
|
{{ else }}
|
||||||
|
$wgGroupPermissions['*']['read'] = true;
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
## Default skin: you can change the default skin. Use the internal symbolic
|
## Default skin: you can change the default skin. Use the internal symbolic
|
||||||
## names, ie 'vector', 'monobook':
|
## names, ie 'vector', 'monobook':
|
||||||
|
|
Loading…
Reference in New Issue