Extension:NextCloud

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
NextCloud
Release status: stable
Implementation User identity
Description Extension to automatically add Users to a NextCloud instance.
Author(s) (FoXFTWtalk)
Latest version 1.0.0
MediaWiki 1.25+
License No license specified
Download
README
Translate the NextCloud extension if it is available at translatewiki.net
Check usage and version matrix.

The NextCloud automatically adds Users to a NextCloud instance. The extension will create a new user on a given NextCloud instance after the User confirmed their Mail-Address. The Extension will send the newly created Credentials to the users Mail-Address. You can optionally set a predefined group and quota the user will be added to. Please make sure that your server can send mails and that the webserver can write into the extensions log directory.

Installation[edit]

  • Download and place the file(s) in a directory called NextCloud in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'NextCloud' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

Required Parameters[edit]

$wgNextCloudUrl
The Url to the NextCloud Site with trailing slash.
Example: https://cloud.example.com/

$wgNextCloudAdminUser
Name of the Admin Account
Example: UserAdmin

$wgNextCloudAdminPassword
Plain Text password of the Admin Account
Example: Password123

$wgNextCloudContactMail
Mail address to which a User can reply to, will be set in the footer in outgoing mails
Example: cloud@example.com

Optional Parameters[edit]

$wgNextCloudUserGroup
The Group the user will be added to, has to be created beforehand
Example: Example Group

$wgNextCloudUserQuota
The Quote the user will be having, defaults zo 256M
Example: 256M

$wgNextCloudWikiName
The Name of the Wiki, $wgSiteName will be used if this value is empty
Example: Example Wiki

$wgNextCloudDebug
If debugging is set to true the extension will log into a file called error.log in the log directory. Please make sure that the webserver can write into this directory!
Example: true