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.
To set up several Nuxeo repositories, you just have to basically duplicate the default-repository-config.xml file (when using Tomcat).
default-repository-config.xml
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.
templates/postgresql/nxserver/config/default-repository-config.xml
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:
templates/custom/nxserver/second-repository-config.xml
nxserver
custom
nuxeo.templates
nuxeo.templates=postgresql,custom
second-repository-config.xml
name="default"
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.
${nuxeo.db.name}
${nuxeo.db.user}
${nuxeo.db.password}
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:
<binaryStore>
<binaryManager class="org.nuxeo.ecm.core.storage.sql.S3BinaryManager" />
And add to your nuxeo.conf the S3 configuration values you need:
nuxeo.s3storage.bucket:
nuxeo.s3storage.awsid:
nuxeo.s3storage.awssecret:
nuxeo.s3storage.region:
nuxeo.s3storage.cachesize:
See the Amazon S3 Online Storage installation instructions for details on this particular configuration.
Something change for 5.9.3 version ? Can't add more them one repository 😞
A few things have changed ([NXP-11551](https
Florent I still need create a platform-config.xml ?
Not, this file is not used anymore.