Manual:$wgLocalFileRepo

Details
This config is for customising the local (primary) file repo that MediaWiki uses. Most users will not want to customise this or will customise this indirectly via other variables such as.

More complex setups may requiring customising this variable. For example, if you want to use a custom file backend, in order to replicate file storage amongst multiple data centers.

Properties required for all repos

 * class
 * The class name for the repository. May come from the core or an extension.  The core repository classes are FileRepo, LocalRepo, ForeignDBRepo.  (FSRepo is also supported for backwards compatibility.)


 * name
 * Should be set to.


 * backend
 * A file backend name (see  ). For $wgLocalFileRepo and , a name is automatically generated in  if not defined.

Default value
This code, in Setup.php, generates a default value for $wgLocalFileRepo based on the values of other configuration settings:

