Allow to configure privateness
continuous-integration/drone/push Build is passing Details

Closes #18.
This commit is contained in:
Luke Murphy 2021-02-16 13:36:33 +01:00
parent ee831dabc0
commit 17e898e3a9
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,8 @@ MEDIAWIKI_EMAIL_CONTACT="info@wiki.example.com"
MEDIAWIKI_EMAIL_FROM="wiki@wiki.example.com"
MEDIAWIKI_LOGO_FILE='$wgResourceBasePath/resources/assets/wiki.png'
MEDIAWIKI_IS_PRIVATE=1
## SMTP
#SMTP_HOST=postfix_relay_app
#SMTP_HOST=mailu_front

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':