All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
local.cfg
file, dspace.cfg
and other configuration files which use similar conventions.local.cfg
file to store all your locally customized configurationsdspace.cfg
file settings (these settings specify the default configuration for DSpace)Optional or Advanced Configuration Settings - contain other more advanced settings that are optional in the dspace.cfg
configuration file.
...
[dspace]/config/dspace.cfg
: The primary configuration file, which contains the main configurations for DSpace.[dspace]/config/modules/*.cfg
: Module configuration files, which are specific to various modules/features within DSpace.[dspace]/config/local.cfg
: A (optional, but highly recommended) localized copy of configurations/settings specific to your DSpace (see see The local.cfg documentation Configuration Properties File below)[dspace]/config/
, some of these include:
default.license
: the default deposit license used by DSpace during the submission process (see Submission User Interface documentation)hibernate.cfg.xml
: The Hibernate class configuration for the DSpace database (almost never requires changing)input-forms.xml
: The default deposit input forms for DSpace (see Submission User Interface documentation)item-submission.xml
: the default item submission process for DSpace (see Submission User Interface documentation)launcher.xml
: The configuration of the DSpace command-line "launcher" ( [dspace]/bin/dspace
, see the DSpace Command Launcher documentation)log4j.properties
: The default logging settings for DSpace log files (usually placed in [dspace]/log
)news-side.html
and news-top.html
: HTML news configuration files for the JSPUI homepage (see JSPUI Configuration and Customization)news-xmlui.xml
: News configuration file for the XMLUI homepage (see XMLUI Configuration and Customization)workflow.xml
: Configuration for the Configurable Workflow feature (not used by default)xmlui.xconf
: Configuration for the XMLUI (see XMLUI Configuration and Customization)...
Info | ||
---|---|---|
| ||
As of DSpace 6, the old "
|
Warning | ||
---|---|---|
| ||
If you are upgrading from an earlier version of DSpace, you will need to be aware that many configuration names/keys have changed. Because Apache Commons Configuration allows for auto-overriding of configurations, all configuration names/keys in different In order to create this powerful ability to override configurations in your Additionally, while the This means that DSpace 5.x (or below) configurations are NOT guarranteed guaranteed compatible with DSpace 6. While you obviously can use your old configurations as a reference, you will need to start with fresh copy of all configuration files, and reapply any necessary configuration changes (this has always been the recommended procedure). However, as you'll see below, you'll likely want to do that anyways in order to take full advantage of the new |
...
A example [dspace-source]/
is provided wtih with DSpace. The example only provides a few key configurations which most DSpace sites are likely to need to customize. However, you may add (or remove) any other configuration to your dspace/config/
local.cfg.EXAMPLElocal.cfg
to customize it as you see fit.
To get started, simply create your own [dspace-source]/dspace/config/local.cfg
based on the example, e.g.
Code Block |
---|
cd [dspace-source]/dspace/config/
cp local.cfg.EXAMPLE local.cfg |
You can then begin to edit your local.cfg
with your local settings for DSpace. There are a few key things to note about the local.cfg
file:
local.cfg
will automatically OVERRIDE a setting of the same name in the dspace.cfg
or any modules/*.cfg
file. This also means that you can copy ANY configuration (from dspace.cfg
or any modules/*.cfg
file) into your local.cfg
to specify a new value.dspace.url
in local.cfg
will override the default value of dspace.url
in dspace.cfg
.oai.solr.url
in local.cfg
will override the default value of oai.solr.url
in config/modules/oai.cfg
local.cfg
file uses the Apache Commons Configuration Property file syntax (like all *.cfg files) . For more information see the section on Configuration File Syntax above.local.cfg
also supports enhanced features like the ability to include other config files (via "include=
" statements).local.cfg
by specifying them as System Properties or Environment Variables.dspace.dir
in development/staging environment, you could specify it as a System Property (e.g. -Ddspace.dir=[new-location]
). This new value will override any value in both local.cfg
and dspace.cfg
....
Here's a very basic example of settings you could place into your local.cfg
file (with inline comments):
...