. /** * Sample config file. Copy, update and rename config.php * * @package qbank_gitsync * @copyright 2023 University of Edinburgh * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // Array of moodleinstnce nicknames and URLs. // The nicknames are used in manifest file names and as a shorthand for which // instance to use when running scripts. Users sharing a manifest file should // use the same instance nickname. // No trailing slash on the URLs. $moodleinstances = [ 'instance1' => 'http://stack.org/instance1', 'instance2' => 'http:localhost:8888', ]; // Array of moodleinstance nicknames and tokens. $token = [ 'instance1' => '4ec...cfcd', 'instance2' => '6ae...abcd', ]; // Use this variable to hard-wire the default instance. $instance = 'instance1'; // Root directory on the local file system. // This directory stores all git repos associated with the gitsync. // No trailing slash on the directory name. $rootdirectory = '/home/user/questions'; // You can set a default manifest file path for import, export and delete. // You will need to run createrepo or importrepotomoodle first to create the file. // You will need to set the default back to null if you want to import or delete // from a new context. Setting the contextlevel CLI parameter will not // override this path and will cause the script to abort. $manifestpath = null; // Are you using Git and wanting repository checks performed automatically? $usegit = true; // Category regex to ignore. // Set this to ignore categories matching the regexp and the descendants of those categories. // Example: '/^.*DO_NOT_SHARE$/' will ignore 'DO_NOT_SHARE', 'really DO_NOT_SHARE' but // not 'DO_NOT_SHARE really', etc. // Alternatively, use -x CLI paramater. // If this setting is null and -x is not used, the setting // saved in the manifest file during repo creation will be used on import/export. $ignorecat = null;