To add files and stuff for branding, I need to put files into the docroot.
For a few things like sitemaps, logos etc we have setup "alternatedocroot_<n>" in glassfish-web.xml:
<property name="alternatedocroot_1" value="from=/guides/* dir=${MPCONFIG=dataverse.files.docroot:./docroot}"/>
<property name="alternatedocroot_2" value="from=/dataexplore/* dir=${MPCONFIG=dataverse.files.docroot:./docroot}"/>
<property name="alternatedocroot_3" value="from=/logos/* dir=${MPCONFIG=dataverse.files.docroot:./docroot}"/>
<property name="alternatedocroot_4" value="from=/sitemap/* dir=${MPCONFIG=dataverse.files.docroot:./docroot}"/>
For the Logo Customization and other bits, I need to put files in either the default docroot (which is by default the domaindir/docroot folder) or one of the alternate docroots. As it's a bad practice to put files into the base image filesystem, I think I've got three options:
Seeing that we already suggest people use /dv/docroot the put stuff for the alternate docroots, I'm leaning towards option 3, as it seems the cleanest. I'd like to hear more opinions!
I'm not sure what the best option is but this all sounds highly related to this gotcha we document at https://guides.dataverse.org/en/6.9/installation/advanced.html#multiple-app-servers
/usr/local/payara6/glassfish/domains/domain1/docroot/logos.As all "logos" are already under an "alternatedocroot", we can have these on some other location already. So yes, related, but not part of the problem. As long as you put these logos on a ReadWriteMany type of filesystem (NFS/SMB/...), you're good to go. As it is configurable, you don't have to mount it to a "logos" subfolder of the docroot.
I put this on the agenda for the next ct call but do you want to do a quick zoom?
Agenda sounds good. Room sounds good, too :smiley:
https://harvard.zoom.us/my/pdurbin?pwd=em1WNUZGbnY2YjhxNEdSbjJJMXNSUT09
Phil pointed out a very valid 4th option: use a static webserver and serve the file from there. Benefit: can be cached locally and also serve more stuff later (previewers, SPA, ...)
Last updated: Jan 09 2026 at 14:18 UTC