How to enable Collabora for multiple domains using docker-compose
In our previous post How to run Collabora office for Nextcloud using docker-compose we investigated how to configure your Collabora office server using docker-compose.yml.
NEW answer for newer collabora versions
If you want to use multiple domains, you need to change this line in .env:
collabora_env_single.conf
COLLABORA_DOMAIN=collabora.mydomain.comto
collabora_env_aliases.conf
aliasgroup1=https://nextcloud.mydomain.com:443,https://nextcloud.myseconddomain.com:443OLD answer for older versions of collabora
If you want to use multiple domains, you need to change this line in .env:
collabora_env_old.conf
COLLABORA_DOMAIN=collabora.mydomain.comBy reading the source code I found out that COLLABORA_DOMAIN is interpreted as a regular expression. Therefore you can use a (...|...|...) syntax.
collabora_env_regex.conf
COLLABORA_DOMAIN=(nextcloud.mydomain.com|nextcloud.myseconddomain.com)After that, restart collabora.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow