Difference between revisions of "Archives/ARCHIVEID/cfg/cfg.d/"

From EPrints Documentation
Jump to: navigation, search
(Added missing descriptions.)
m
Line 22: Line 22:
 
** '''[[adminemail.pl]] <sup>5</sup>''' - The admin email address for the repository archive.
 
** '''[[adminemail.pl]] <sup>5</sup>''' - The admin email address for the repository archive.
 
** '''[[branding.pl]] <sup>1</sup>''' - Branding for the repository archive.
 
** '''[[branding.pl]] <sup>1</sup>''' - Branding for the repository archive.
** '''[[citationcaches.pl]] <sup>3,4</sup>''' - Configurtion for protection against [https://owasp.org/www-community/attacks/csrf Cross Site Request Forgery (CSRF)] attacks.
+
** '''[[citationcaches.pl]] <sup>3,4</sup>''' - Configuration for protection against [https://owasp.org/www-community/attacks/csrf Cross Site Request Forgery (CSRF)] attacks.
 
** '''[[csrf_protection.pl]] <sup>3,4</sup>''' - Configuration for enabling and restricting citation caching.
 
** '''[[csrf_protection.pl]] <sup>3,4</sup>''' - Configuration for enabling and restricting citation caching.
 
** '''[[database.pl]] <sup>5</sup>''' - Configuration for connecting to the database.
 
** '''[[database.pl]] <sup>5</sup>''' - Configuration for connecting to the database.

Revision as of 11:25, 4 February 2022

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects

This is the main repository configuration directory. Each of these files is a valid perl script and are loaded in alphabetic order. The configuration is stored in a hash reference named $c. For example a simple file might look like this:

# the foo option modifies the number of badgers in the boojum
$c->{foo} = 23;

Although this listing is shown as for the archive's cfg.d directory, it is actually the combined listing of all configuration files under the following cfg.d directories:

  1. EPRINTS_PATH/lib/cfg.d/
  2. EPRINTS_PATH/flavours/pub_lib/cfg.d/
  3. EPRINTS_PATH/lib/defaultcfg_zero/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation, unless using a specific flavour).
  4. EPRINTS_PATH/flavours/pub_lib/defaultcfg/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation).
  5. Generated through epadmin create

This directory is at the top of the levels of precedence for configuration files:

lib/cfg.d/ <- flavours/FLAVOURLIB/cfg.d/ <- ingredients/INGREDIENTID/cfg.d/ <- site_lib/cfg.d/ <- archives/ARCHIVEID/cfg/cfg.d/