Move configuration, data and log directories outside Nuxeo
The configuration of your application is saved in the
nuxeo.conf configuration file, whatever the means you use to configure your application (manual edit, Startup Wizard or Admin Center). It is better, although not mandatory, to store your customized configuration outside Nuxeo. This way, you will be able to easily upgrade Nuxeo, keeping your configuration safely apart of Nuxeo directory.
To move the configuration file outside the Nuxeo directory:
- Move the
nuxeo.conffile from its default location.
- After you moved
nuxeo.conf, you need to define its location as an environment variable.
log directories are stored inside the Nuxeo tree. To ease backup and upgrades, it is highly recommended to move them outside the Nuxeo tree.
To move the data and log directories:
- In the Admin Center, type the path to the location where you want the directories to be stored (see the table below).
- Click on Save.
- Restart your server.
logdirectories are created at the location you typed.
Data and log directories configuration
Field / Property
Data directory (absolute or relative to NUXEO_HOME). It involves all data not being stored in the database.
Log directory (absolute or relative to NUXEO_HOME).
Define environment variables
When the server starts, it guesses where the Nuxeo home directory and the Nuxeo configuration file (
nuxeo.conf) are located. If it doesn't find it or if you want to force it to use a specific home directory and/or a specific configuration file, you can define their location as environment variables.
Here is how Nuxeo home is guessed when the server starts:
- Before Nuxeo EP 5.4.1, if
NUXEO_HOMEis not set, then the following environment variables are used to find the Nuxeo Home, by order: JBOSS_HOME, CATALINA_HOME, JETTY_HOME.
- Since Nuxeo EP 5.4.1, if
NUXEO_HOMEis not set, then the parent directory of the called script (
nuxeoctl) is used.
Setting the Nuxeo home directory as an environment variable is recommended in the following cases:
- if you installed several Nuxeo applications on the same machine (for evaluation or production purpose),
- if you want to use other scripts than the
$NUXEO_HOME/bin/nuxeoctlscript (such as a service in
You must then set
NUXEO_HOME=/path/to/nuxeo/ in the system environment variables:
Windows users must write
"set NUXEO_HOME=..." or use the control panel interface to define user environment parameters (like it's done for
Linux and Mac OS X users will write
"export NUXEO_HOME=...." in
You need to set the location of the nuxeo.conf file as an environment variable if you moved your configuration outside of the Nuxeo directory.
Moving the data and configuration outside the Nuxeo directory is recommended in a production environment because it makes upgrades easier and more secured: your data and configuration won't risk to be overridden or lost.
You must then set
NUXEO_CONF=/path/to/nuxeo.conf in the system environment variables.
Windows specific case
Under Windows, the location of the
nuxeo.conf is defined by that order of priority (ie first one of those found is used):
- Registry key
%PRODNAME%equals to "Nuxeo" (or in older versions, "Nuxeo CAP", "Nuxeo DM", "Nuxeo DAM", ...),
- Environment variable
"nuxeo.conf"file in the working directory,
"nuxeo.conf"file on the Desktop,
"nuxeo.conf"file in the same location as
Enable email alerts
Default Nuxeo DM email configuration is filled in with neutral values that you need to edit to make Nuxeo DM work with your mail server. Unless you do that, alerts emails won't be sent to users. Unless you do that, alerts emails won't be sent to users.
To make alerts available:
- In the Admin Center, click on the Setup tab of system information section.
- Edit and fill in the values of the Email information section (see below for expected parameters).
To enable alerts, filling in the SMTP parameters should be sufficient for most mail server configurations.
- Click the button Save.
As indicated on top of the page, you need to restart your server so the new configuration is taken into account.
Email information configuration
Field / Property
Email notifications subject prefix
Text displayed in the "Object" before the object of the alerts email to help users identify that the emails are coming from the application.
Mail store protocol
Name of the protocol used to store emails on the server.
Mail transport protocol
Name of the protocol used to send emails.
Host name for POP3
Name of the mail server host used to receive and store emails.
Default value is set to "false". Change it to "true" if you want to have the details of what the server is doing in the logs.
Host name for SMTP
Mail server host name for outgoing mails.
Port number for SMTP
Mail server port for outgoing emails.
Use authentication for SMTP
Indicate if authentication is needed for the mail server to send emails.
Use STARTTLS for SMTP
Indicate if STARTTLS is needed for the mail server.
Type the username that will be used if you set the authentication for SMTP parameter to "true".
Type the password that will be used if you set the authentication for SMTP parameter to "true".
Sender address mail
Email address that will displayed as the sender's address.
If you have complex mail server configurations, you may want to check the Javamail API FAQ for more information.
|Content by Label|