08-16-2011 08:28 AM
How do I set up Nuxeo with several repositories? I want to store some of my documents in the standard Nuxeo database (PostgreSQL for instance, and binaries in the filesystem) and others in Amazon S3.
08-16-2011 08:37 AM
To set up several Nuxeo repositories, you just have to basically duplicate the default-repository-config.xml
file (when using Tomcat).
Start with a one-repository configuration that works. Supposing your database is PostgreSQL, the basic configuration template will live in templates/postgresql/nxserver/config/default-repository-config.xml
. Note that, in this file, the variables will be replaced based on your nuxeo.conf
.
Copy this file into templates/custom/nxserver/second-repository-config.xml
(create the nxserver
folder if needed). Make sure that you activate your custom config by adding custom
in your nuxeo.conf
in the nuxeo.templates
section (so for this example you would then have nuxeo.templates=postgresql,custom
). Then edit your new second-repository-config.xml
file to point to your second repository:
name="default"
that appears in two places, replace default with the second repository name, for instance second,For instance, for a second PostgreSQL database with a different name on the same server, you can just replace the ${nuxeo.db.name}
, ${nuxeo.db.user}
and ${nuxeo.db.password}
with new values.
See the VCS Configuration page for more on repository configuration.
As an other example, for an Amazon S3 configuration, you will want to replace the <binaryStore>
section with something like:
<binaryManager class="org.nuxeo.ecm.core.storage.sql.S3BinaryManager" />
And add to your nuxeo.conf
the S3 configuration values you need:
nuxeo.s3storage.bucket:
your bucket namenuxeo.s3storage.awsid:
your AWS_ACCESS_KEY_IDnuxeo.s3storage.awssecret:
your AWS_SECRET_ACCESS_KEYnuxeo.s3storage.region:
your region codenuxeo.s3storage.cachesize:
size of the local cache (default is 100 MB)See the Amazon S3 Online Storage installation instructions for details on this particular configuration.
08-16-2011 08:37 AM
To set up several Nuxeo repositories, you just have to basically duplicate the default-repository-config.xml
file (when using Tomcat).
Start with a one-repository configuration that works. Supposing your database is PostgreSQL, the basic configuration template will live in templates/postgresql/nxserver/config/default-repository-config.xml
. Note that, in this file, the variables will be replaced based on your nuxeo.conf
.
Copy this file into templates/custom/nxserver/second-repository-config.xml
(create the nxserver
folder if needed). Make sure that you activate your custom config by adding custom
in your nuxeo.conf
in the nuxeo.templates
section (so for this example you would then have nuxeo.templates=postgresql,custom
). Then edit your new second-repository-config.xml
file to point to your second repository:
name="default"
that appears in two places, replace default with the second repository name, for instance second,For instance, for a second PostgreSQL database with a different name on the same server, you can just replace the ${nuxeo.db.name}
, ${nuxeo.db.user}
and ${nuxeo.db.password}
with new values.
See the VCS Configuration page for more on repository configuration.
As an other example, for an Amazon S3 configuration, you will want to replace the <binaryStore>
section with something like:
<binaryManager class="org.nuxeo.ecm.core.storage.sql.S3BinaryManager" />
And add to your nuxeo.conf
the S3 configuration values you need:
nuxeo.s3storage.bucket:
your bucket namenuxeo.s3storage.awsid:
your AWS_ACCESS_KEY_IDnuxeo.s3storage.awssecret:
your AWS_SECRET_ACCESS_KEYnuxeo.s3storage.region:
your region codenuxeo.s3storage.cachesize:
size of the local cache (default is 100 MB)See the Amazon S3 Online Storage installation instructions for details on this particular configuration.
05-01-2014 08:33 PM
Something change for 5.9.3 version ? Can't add more them one repository 😞
05-02-2014 10:47 AM
A few things have changed ([NXP-11551](https
05-02-2014 12:25 PM
Florent I still need create a platform-config.xml ?
05-02-2014 12:58 PM
Not, this file is not used anymore.
05-02-2014 03:30 PM
works perfect!
04-17-2015 10:53 AM
Rafael, can you give a few hints about your solution ?
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.