⧼vector-jumptocontent⧽

Archives/ARCHIVEID/cfg/cfg.d/: Difference between revisions

From EPrints Documentation
removed user_password_maxlength.pl. imporved description for user_auth_limits.pl
Added info about where cfg.d files come from.
Line 4: Line 4:
  # the foo option modifies the number of badgers in the boojum
  # the foo option modifies the number of badgers in the boojum
  $c->{foo} = 23;
  $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:
* EPRINTS_PATH/lib/cfg.d/
* EPRINTS_PATH/flavours/pub_lib/cfg.d/
* EPRINTS_PATH/lib/defaultcfg/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation).
* EPRINTS_PATH/flavours/pub_lib/defaultcfg/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation).


*'''[[EPrints_Directory_Structure/eprints3|eprints3]]/[[EPrints_Directory_Structure/eprints3/archives|archives]]/[[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID|ARCHIVEID]]/[[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg|cfg]]/cfg.d'''
*'''[[EPrints_Directory_Structure/eprints3|eprints3]]/[[EPrints_Directory_Structure/eprints3/archives|archives]]/[[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID|ARCHIVEID]]/[[EPrints_Directory_Structure/eprints3/archives/ARCHIVEID/cfg|cfg]]/cfg.d'''

Revision as of 13:24, 31 January 2022

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:

  • EPRINTS_PATH/lib/cfg.d/
  • EPRINTS_PATH/flavours/pub_lib/cfg.d/
  • EPRINTS_PATH/lib/defaultcfg/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation).
  • EPRINTS_PATH/flavours/pub_lib/defaultcfg/cfg.d/ (which are copied to the repository archive's cfg.d directory on its creation).